1
0
Fork 0
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:
SirStendec 2019-03-26 17:37:00 -04:00
parent 14918c6cdc
commit b9daa659f4
3 changed files with 14 additions and 14 deletions

View file

@ -149,7 +149,7 @@ ${typeof x[1] === 'string' ? x[1] : JSON.stringify(x[1], null, 4)}`
FrankerFaceZ.Logger = Logger; FrankerFaceZ.Logger = Logger;
const VER = FrankerFaceZ.version_info = { 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__, commit: __git_commit__,
build: __webpack_hash__, build: __webpack_hash__,
toString: () => toString: () =>

View file

@ -82,7 +82,7 @@ export default class TabCompletion extends Module {
updateEmoteCompletion(inst, child) { updateEmoteCompletion(inst, child) {
if ( ! child ) if ( ! child )
child = this.fine.searchTree(inst, 'tab-emote-suggestions'); child = this.fine.searchTree(inst, 'tab-emote-suggestions', 50);
if ( ! child ) if ( ! child )
return; return;
@ -190,7 +190,7 @@ export default class TabCompletion extends Module {
channel_login = inst._ffz_channel_login; channel_login = inst._ffz_channel_login;
if ( ! channel_login ) { if ( ! channel_login ) {
const parent = this.fine.searchParent(inst, 'chat-input'); const parent = this.fine.searchParent(inst, 'chat-input', 50);
if ( parent ) if ( parent )
this.updateEmoteCompletion(parent, inst); this.updateEmoteCompletion(parent, inst);

View file

@ -119,6 +119,16 @@ export default class CSSTweaks extends Module {
changed: val => this.toggleHide('side-rec-friends', !val) 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', { this.settings.add('layout.swap-sidebars', {
default: false, default: false,
ui: { ui: {
@ -131,16 +141,6 @@ export default class CSSTweaks extends Module {
changed: val => this.toggle('swap-sidebars', val) 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', { this.settings.add('layout.minimal-navigation', {
requires: ['layout.theatre-navigation'], requires: ['layout.theatre-navigation'],
default: false, 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.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-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-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('prime-offers', !this.settings.get('layout.prime-offers'));
this.toggleHide('top-discover', !this.settings.get('layout.discover')); this.toggleHide('top-discover', !this.settings.get('layout.discover'));