From b9daa659f488cddccd46b8e446dd3b2c9e2909bf Mon Sep 17 00:00:00 2001 From: SirStendec Date: Tue, 26 Mar 2019 17:37:00 -0400 Subject: [PATCH] 4.0.0-rc15.3 * Added: Option to hide offline channels in the sidebar. (Thanks, pstengel.) * Fixed: Tab-completion of emotes. --- src/main.js | 2 +- .../modules/chat/tab_completion.jsx | 4 ++-- .../modules/css_tweaks/index.js | 22 +++++++++---------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main.js b/src/main.js index 65c971d2..de5413fd 100644 --- a/src/main.js +++ b/src/main.js @@ -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: () => diff --git a/src/sites/twitch-twilight/modules/chat/tab_completion.jsx b/src/sites/twitch-twilight/modules/chat/tab_completion.jsx index 77bde831..84951b18 100644 --- a/src/sites/twitch-twilight/modules/chat/tab_completion.jsx +++ b/src/sites/twitch-twilight/modules/chat/tab_completion.jsx @@ -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); diff --git a/src/sites/twitch-twilight/modules/css_tweaks/index.js b/src/sites/twitch-twilight/modules/css_tweaks/index.js index aabaac6d..14127710 100644 --- a/src/sites/twitch-twilight/modules/css_tweaks/index.js +++ b/src/sites/twitch-twilight/modules/css_tweaks/index.js @@ -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'));