Add observer for compact view preference and adjust animation timeout

This commit is contained in:
mr. M
2025-01-06 17:36:39 +01:00
parent b0c2416efb
commit 0b91608bbe
2 changed files with 2 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ var gZenCompactModeManager = {
_removeHoverFrames: {},
init() {
Services.prefs.addObserver('zen.view.compact', this._updateEvent.bind(this));
Services.prefs.addObserver('zen.view.sidebar-expanded.on-hover', this._disableTabsOnHoverIfConflict.bind(this));
Services.prefs.addObserver('zen.tabs.vertical.right-side', this._updateSidebarIsOnRight.bind(this));

View File

@@ -1307,7 +1307,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
setTimeout(() => {
this._animatingChange = false;
gBrowser.tabContainer.removeAttribute('zen-workspace-animation');
}, 500);
}, 600);
}
}