mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-10 23:55:30 +02:00
Fixed changing activation method not applied to tabs (https://github.com/zen-browser/desktop/issues/2429)
This commit is contained in:
parent
448a034766
commit
a5d4855530
1 changed files with 2 additions and 0 deletions
|
@ -676,10 +676,12 @@ var gZenWorkspacesSettings = {
|
||||||
Services.prefs.addObserver('zen.workspaces.enabled', this);
|
Services.prefs.addObserver('zen.workspaces.enabled', this);
|
||||||
Services.prefs.addObserver('zen.tab-unloader.enabled', tabsUnloaderPrefListener);
|
Services.prefs.addObserver('zen.tab-unloader.enabled', tabsUnloaderPrefListener);
|
||||||
Services.prefs.addObserver('zen.glance.enabled', tabsUnloaderPrefListener); // We can use the same listener for both prefs
|
Services.prefs.addObserver('zen.glance.enabled', tabsUnloaderPrefListener); // We can use the same listener for both prefs
|
||||||
|
Services.prefs.addObserver('zen.glance.activation-method', tabsUnloaderPrefListener);
|
||||||
window.addEventListener('unload', () => {
|
window.addEventListener('unload', () => {
|
||||||
Services.prefs.removeObserver('zen.workspaces.enabled', this);
|
Services.prefs.removeObserver('zen.workspaces.enabled', this);
|
||||||
Services.prefs.removeObserver('zen.tab-unloader.enabled', tabsUnloaderPrefListener);
|
Services.prefs.removeObserver('zen.tab-unloader.enabled', tabsUnloaderPrefListener);
|
||||||
Services.prefs.removeObserver('zen.glance.enabled', tabsUnloaderPrefListener);
|
Services.prefs.removeObserver('zen.glance.enabled', tabsUnloaderPrefListener);
|
||||||
|
Services.prefs.removeObserver('zen.glance.activation-method', tabsUnloaderPrefListener);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue