Fixed shortcuts on startup

This commit is contained in:
mr. M 2024-10-18 17:30:50 +02:00
parent e13fa2315e
commit d567e18216
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
2 changed files with 8 additions and 4 deletions

View file

@ -738,6 +738,11 @@ class ZenKeyboardShortcutsVersioner {
}
migrateIfNeeded(data) {
if (!data) {
// Rebuid the shortcuts
this.version = 0;
}
if (this.isVersionUpToDate()) {
return data;
}

View file

@ -576,11 +576,10 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
this._workspaceButtonContextMenuListener = null;
}
button.setAttribute('removable', 'true');
button.setAttribute('showInPrivateBrowsing', 'false');
button.setAttribute('tooltiptext', 'Workspaces');
if (this.shouldShowIconStrip) {
button.setAttribute('removable', 'true');
button.setAttribute('showInPrivateBrowsing', 'false');
button.setAttribute('tooltiptext', 'Workspaces');
let workspaces = await this._workspaces();
for (let workspace of workspaces.workspaces) {