mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-05 18:48:31 +00:00
4.0.0-rc15.3
* Added: Option to hide offline channels in the sidebar. (Thanks, pstengel.) * Fixed: Tab-completion of emotes.
This commit is contained in:
parent
14918c6cdc
commit
b9daa659f4
3 changed files with 14 additions and 14 deletions
|
@ -149,7 +149,7 @@ ${typeof x[1] === 'string' ? x[1] : JSON.stringify(x[1], null, 4)}`
|
|||
FrankerFaceZ.Logger = Logger;
|
||||
|
||||
const VER = FrankerFaceZ.version_info = {
|
||||
major: 4, minor: 0, revision: 0, extra: '-rc15.2',
|
||||
major: 4, minor: 0, revision: 0, extra: '-rc15.3',
|
||||
commit: __git_commit__,
|
||||
build: __webpack_hash__,
|
||||
toString: () =>
|
||||
|
|
|
@ -82,7 +82,7 @@ export default class TabCompletion extends Module {
|
|||
|
||||
updateEmoteCompletion(inst, child) {
|
||||
if ( ! child )
|
||||
child = this.fine.searchTree(inst, 'tab-emote-suggestions');
|
||||
child = this.fine.searchTree(inst, 'tab-emote-suggestions', 50);
|
||||
if ( ! child )
|
||||
return;
|
||||
|
||||
|
@ -190,7 +190,7 @@ export default class TabCompletion extends Module {
|
|||
channel_login = inst._ffz_channel_login;
|
||||
|
||||
if ( ! channel_login ) {
|
||||
const parent = this.fine.searchParent(inst, 'chat-input');
|
||||
const parent = this.fine.searchParent(inst, 'chat-input', 50);
|
||||
if ( parent )
|
||||
this.updateEmoteCompletion(parent, inst);
|
||||
|
||||
|
|
|
@ -119,6 +119,16 @@ export default class CSSTweaks extends Module {
|
|||
changed: val => this.toggleHide('side-rec-friends', !val)
|
||||
});
|
||||
|
||||
this.settings.add('layout.side-nav.hide-offline', {
|
||||
default: false,
|
||||
ui: {
|
||||
path: 'Appearance > Layout >> Side Navigation',
|
||||
title: 'Hide Offline Channels',
|
||||
component: 'setting-check-box'
|
||||
},
|
||||
changed: val => this.toggleHide('side-offline-channels', val)
|
||||
});
|
||||
|
||||
this.settings.add('layout.swap-sidebars', {
|
||||
default: false,
|
||||
ui: {
|
||||
|
@ -131,16 +141,6 @@ export default class CSSTweaks extends Module {
|
|||
changed: val => this.toggle('swap-sidebars', val)
|
||||
});
|
||||
|
||||
this.settings.add('layout.hide-offline-channels', {
|
||||
default: false,
|
||||
ui: {
|
||||
path: 'Appearance > Layout >> Side Navigation',
|
||||
title: 'Hide Offline Channels',
|
||||
component: 'setting-check-box'
|
||||
},
|
||||
changed: val => this.toggleHide('side-offline-channels', val)
|
||||
});
|
||||
|
||||
this.settings.add('layout.minimal-navigation', {
|
||||
requires: ['layout.theatre-navigation'],
|
||||
default: false,
|
||||
|
@ -226,7 +226,7 @@ export default class CSSTweaks extends Module {
|
|||
this.toggle('hide-side-nav-avatars', ! this.settings.get('layout.side-nav.show-avatars'));
|
||||
this.toggleHide('side-nav', !this.settings.get('layout.side-nav.show'));
|
||||
this.toggleHide('side-rec-friends', !this.settings.get('layout.side-nav.show-rec-friends'));
|
||||
this.toggleHide('side-offline-channels', !this.settings.get('layout.hide-offline-channels'));
|
||||
this.toggleHide('side-offline-channels', this.settings.get('layout.side-nav.hide-offline'));
|
||||
this.toggleHide('prime-offers', !this.settings.get('layout.prime-offers'));
|
||||
this.toggleHide('top-discover', !this.settings.get('layout.discover'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue