mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-29 20:01:52 +00:00
gh-12841: Fixed creating an unexpected folder in a second window when a new space is created (gh-12857)
This commit is contained in:
@@ -1495,6 +1495,12 @@ class nsZenWindowSync {
|
||||
|
||||
on_TabGroupCreate(aEvent) {
|
||||
const tabGroup = aEvent.target;
|
||||
// See gh-12841, when creating a new space, the tab group create
|
||||
// event is fired for the zen-workspace-collapsible-pins element, but
|
||||
// its not something we want to sync across windows, so we can just ignore it.
|
||||
if (tabGroup.tagName === "zen-workspace-collapsible-pins") {
|
||||
return;
|
||||
}
|
||||
if (tabGroup.id && tabGroup.alreadySynced) {
|
||||
// This tab group was opened as part of a sync operation.
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user