Adjust tab rotation angle and enhance pinned tab loading logic for improved user experience

This commit is contained in:
mr. M
2025-02-21 16:50:16 +01:00
parent 22060f90bf
commit 68cf549df3
5 changed files with 21 additions and 16 deletions

View File

@@ -71,6 +71,7 @@
if (onInit) {
await this._refreshPinnedTabs({ init: onInit });
this._hasFinishedLoading = true;
}
}
@@ -130,6 +131,7 @@
async _refreshPinnedTabs({ init = false } = {}) {
await ZenWorkspaces.promiseSectionsInitialized;
console.log('Refreshing pinned tabs');
await this._initializePinsCache();
await this._initializePinnedTabs(init);
}
@@ -400,7 +402,7 @@
}
async _setPinnedAttributes(tab) {
if (tab.hasAttribute('zen-pin-id')) {
if (tab.hasAttribute('zen-pin-id') || !this._hasFinishedLoading) {
return;
}