Fixed workspace indicator showing if workspaces are disabled

This commit is contained in:
mr. M
2024-12-17 19:08:01 +01:00
parent 653875c02e
commit 6c67aee8a4
2 changed files with 4 additions and 1 deletions

View File

@@ -437,7 +437,7 @@
}
}
@media not (-moz-bool-pref: 'zen.workspaces.show-workspace-indicator') {
@media not (-moz-bool-pref: 'zen.workspaces.show-workspace-indicator') or (not (-moz-bool-pref: 'zen.workspaces.enabled')) {
#zen-current-workspace-indicator {
display: none !important;
}

View File

@@ -1465,6 +1465,9 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
const isEssential = tab.getAttribute("zen-essential") === "true";
if (!isEssential) {
const activeWorkspace = await parent.ZenWorkspaces.getActiveWorkspace();
if (!activeWorkspace) {
return;
}
// Only update last selected tab for non-essential tabs in their workspace
if (!isEssential && workspaceID === activeWorkspace.uuid) {