Fixed essentials and pinned tabs not being correctly restored and race conditions when starting multiple zen windows

This commit is contained in:
mr. M
2025-01-17 19:01:32 +01:00
parent e6313c4d5f
commit 8e783f948f
7 changed files with 30 additions and 16 deletions

View File

@@ -47,7 +47,7 @@
}
class ZenPinnedTabManager extends ZenDOMOperatedFeature {
init() {
async init() {
if (!this.enabled) {
return;
}
@@ -58,6 +58,9 @@
this._zenClickEventListener = this._onTabClick.bind(this);
ZenWorkspaces.addChangeListeners(this.onWorkspaceChange.bind(this));
await ZenPinnedTabsStorage.promiseInitialized;
ZenWorkspaces._resolvePinnedInitialized();
}
async onWorkspaceChange(newWorkspace, onInit) {