mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 01:20:00 +02:00
Fixed shortcuts on startup
This commit is contained in:
parent
e13fa2315e
commit
d567e18216
2 changed files with 8 additions and 4 deletions
|
@ -738,6 +738,11 @@ class ZenKeyboardShortcutsVersioner {
|
|||
}
|
||||
|
||||
migrateIfNeeded(data) {
|
||||
if (!data) {
|
||||
// Rebuid the shortcuts
|
||||
this.version = 0;
|
||||
}
|
||||
|
||||
if (this.isVersionUpToDate()) {
|
||||
return data;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue