Remove unnecessary wait for session store restoration in pinned tabs refresh

This commit is contained in:
mr. M
2025-02-21 16:07:40 +01:00
parent 12cc944728
commit 16f242da13
2 changed files with 3 additions and 4 deletions

View File

@@ -130,7 +130,6 @@
async _refreshPinnedTabs({ init = false } = {}) {
await ZenWorkspaces.promiseSectionsInitialized;
await SessionStore.promiseAllWindowsRestored;
await this._initializePinsCache();
await this._initializePinnedTabs(init);
}
@@ -175,7 +174,7 @@
async _initializePinnedTabs(init = false) {
const pins = this._pinsCache;
if (!pins?.length) {
if (!pins?.length || !init) {
return;
}