mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 09:26:34 +00:00
Remove unnecessary wait for session store restoration in pinned tabs refresh
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user