We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f0292d commit d9646f9Copy full SHA for d9646f9
src/zen/tabs/ZenPinnedTabManager.mjs
@@ -447,9 +447,15 @@
447
);
448
group.setAttribute('zen-pin-id', id);
449
for (const tab of group.tabs) {
450
- if (tab.pinned && tab.hasAttribute('zen-pin-id')) {
+ // Only add it if the tab is directly under the group
451
+ if (
452
+ tab.pinned &&
453
+ tab.hasAttribute('zen-pin-id') &&
454
+ tab.group === group &&
455
+ this.#hasInitializedPins
456
+ ) {
457
const tabPinId = tab.getAttribute('zen-pin-id');
- ZenPinnedTabsStorage.addTabToGroup(tabPinId, id, /* position */ tab._pPos);
458
+ await ZenPinnedTabsStorage.addTabToGroup(tabPinId, id, /* position */ tab._pPos);
459
}
460
461
await this.refreshPinnedTabs();
0 commit comments