From 3e125fdb91f5860587fe2bb50c81d4a2720f0a4c Mon Sep 17 00:00:00 2001 From: "mr. m" Date: Mon, 1 Sep 2025 00:51:48 +0200 Subject: [PATCH] feat: Properly update items on group move, b=no-bug, c=tabs --- src/zen/tabs/ZenPinnedTabManager.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/zen/tabs/ZenPinnedTabManager.mjs b/src/zen/tabs/ZenPinnedTabManager.mjs index bb2421b65..26c00c2e5 100644 --- a/src/zen/tabs/ZenPinnedTabManager.mjs +++ b/src/zen/tabs/ZenPinnedTabManager.mjs @@ -533,11 +533,13 @@ if (!pinId) { return; } - for (const tab of group.tabs) { + for (const tab of group.allItemsRecursive) { if (tab.pinned && tab.getAttribute('zen-pin-id') === pinId) { const pin = this._pinsCache.find((p) => p.uuid === pinId); if (pin) { pin.position = tab._pPos; + pin.parentUuid = tab.group?.getAttribute('zen-pin-id') || null; + pin.workspaceUuid = group.getAttribute('zen-workspace-id'); await this.savePin(pin, false); } break; @@ -547,6 +549,7 @@ if (groupPin) { groupPin.position = newIndex; groupPin.parentUuid = group.group?.getAttribute('zen-pin-id'); + groupPin.workspaceUuid = group.getAttribute('zen-workspace-id'); await this.savePin(groupPin); } }