From 7415d1523aed634c82f7cd643ca8f2e46e95d6e8 Mon Sep 17 00:00:00 2001 From: mbnuqw Date: Tue, 27 Feb 2024 18:46:52 +0500 Subject: [PATCH] fix: correctly update tab.isGroup flag --- src/services/tabs.fg.handlers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/tabs.fg.handlers.ts b/src/services/tabs.fg.handlers.ts index e4fd087e..dc9c1006 100644 --- a/src/services/tabs.fg.handlers.ts +++ b/src/services/tabs.fg.handlers.ts @@ -526,9 +526,9 @@ function onTabUpdated(tabId: ID, change: browser.tabs.ChangeInfo, nativeTab: Nat let branchColorizationNeeded = false if (change.url !== undefined && change.url !== tab.url) { const isInternal = change.url.startsWith(ADDON_HOST) - if (isInternal !== tab.internal) { - tab.isGroup = isInternal && Utils.isGroupUrl(change.url) - tab.reactive.isGroup = tab.isGroup + const isGroup = isInternal && Utils.isGroupUrl(change.url) + if (tab.isGroup !== isGroup) { + tab.reactive.isGroup = tab.isGroup = isGroup } tab.internal = isInternal Tabs.cacheTabsData()