Fixed compact mode sidebar animating on an empty state and not animating properly

This commit is contained in:
mr. m
2025-03-02 18:21:18 +01:00
parent ff25a5b432
commit 7cb1ae6d3c
3 changed files with 11 additions and 5 deletions

View File

@@ -1967,6 +1967,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
}
async onLocationChange(browser) {
gZenCompactModeManager.sidebar.toggleAttribute('zen-has-empty-tab', gBrowser.selectedTab.hasAttribute('zen-empty-tab'));
if (!this.workspaceEnabled || this._inChangingWorkspace || this._isClosingWindow) {
return;
}