From 48fd5af96b682c3e32c42000f2ec6a1734a2bf7c Mon Sep 17 00:00:00 2001 From: mbnuqw Date: Tue, 15 Aug 2023 10:56:08 +0500 Subject: [PATCH] Fixed: onTabMoved: Update panelId only when needed --- src/services/tabs.fg.handlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/tabs.fg.handlers.ts b/src/services/tabs.fg.handlers.ts index 299a934e..16edd5cc 100644 --- a/src/services/tabs.fg.handlers.ts +++ b/src/services/tabs.fg.handlers.ts @@ -1174,7 +1174,7 @@ function onTabMoved(id: ID, info: browser.tabs.MoveInfo): void { dstPanel = Sidebar.panelsById[toTab.panelId] } - if (Utils.isTabsPanel(srcPanel) && Utils.isTabsPanel(dstPanel)) { + if (Utils.isTabsPanel(srcPanel) && Utils.isTabsPanel(dstPanel) && srcPanel.id !== dstPanel.id) { movedTab.panelId = dstPanel.id Sidebar.updateMediaStateOfPanelDebounced(100, movedTab.panelId, movedTab) }