feat: Added more urlbar commands, b=no-bug, c=workspaces

This commit is contained in:
Mr. M
2025-09-18 01:12:52 +02:00
parent f08c69f1e9
commit 87d513c51d
3 changed files with 77 additions and 6 deletions

View File

@@ -2555,12 +2555,14 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
}
}
#changeToEmptyTab() {
const isEmpty = gBrowser.selectedTab.hasAttribute('zen-empty-tab');
gZenCompactModeManager.sidebar.toggleAttribute('zen-has-empty-tab', isEmpty);
}
async onLocationChange(event) {
let tab = event.target;
gZenCompactModeManager.sidebar.toggleAttribute(
'zen-has-empty-tab',
gBrowser.selectedTab.hasAttribute('zen-empty-tab')
);
this.#changeToEmptyTab();
if (!this.workspaceEnabled || this._inChangingWorkspace || this._isClosingWindow) {
return;
}