mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-19 14:00:55 +00:00
fix: Only add folder direct childs to the database, b=no-bug, c=tabs
This commit is contained in:
@@ -447,9 +447,15 @@
|
||||
);
|
||||
group.setAttribute('zen-pin-id', id);
|
||||
for (const tab of group.tabs) {
|
||||
if (tab.pinned && tab.hasAttribute('zen-pin-id')) {
|
||||
// Only add it if the tab is directly under the group
|
||||
if (
|
||||
tab.pinned &&
|
||||
tab.hasAttribute('zen-pin-id') &&
|
||||
tab.group === group &&
|
||||
this.#hasInitializedPins
|
||||
) {
|
||||
const tabPinId = tab.getAttribute('zen-pin-id');
|
||||
ZenPinnedTabsStorage.addTabToGroup(tabPinId, id, /* position */ tab._pPos);
|
||||
await ZenPinnedTabsStorage.addTabToGroup(tabPinId, id, /* position */ tab._pPos);
|
||||
}
|
||||
}
|
||||
await this.refreshPinnedTabs();
|
||||
|
||||
Reference in New Issue
Block a user