mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-21 23:05:47 +00:00
feat: Added more urlbar commands, b=no-bug, c=workspaces
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user