Skip to content

Commit

Permalink
Fixed: onTabMoved: Update panelId only when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnuqw committed Aug 15, 2023
1 parent d8c76be commit 48fd5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/tabs.fg.handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 48fd5af

Please sign in to comment.