mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 04:59:58 +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) {
|
migrateIfNeeded(data) {
|
||||||
|
if (!data) {
|
||||||
|
// Rebuid the shortcuts
|
||||||
|
this.version = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.isVersionUpToDate()) {
|
if (this.isVersionUpToDate()) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
|
@ -576,11 +576,10 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||||
this._workspaceButtonContextMenuListener = null;
|
this._workspaceButtonContextMenuListener = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button.setAttribute('removable', 'true');
|
||||||
|
button.setAttribute('showInPrivateBrowsing', 'false');
|
||||||
|
button.setAttribute('tooltiptext', 'Workspaces');
|
||||||
if (this.shouldShowIconStrip) {
|
if (this.shouldShowIconStrip) {
|
||||||
button.setAttribute('removable', 'true');
|
|
||||||
button.setAttribute('showInPrivateBrowsing', 'false');
|
|
||||||
button.setAttribute('tooltiptext', 'Workspaces');
|
|
||||||
|
|
||||||
let workspaces = await this._workspaces();
|
let workspaces = await this._workspaces();
|
||||||
|
|
||||||
for (let workspace of workspaces.workspaces) {
|
for (let workspace of workspaces.workspaces) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue