mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-06 01:46:35 +00:00
Adjust tab rotation angle and enhance pinned tab loading logic for improved user experience
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user