mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-08 02:46:35 +00:00
Refactor workspace tab transformations and update tab selection logic
This commit is contained in:
@@ -1544,7 +1544,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||||||
}
|
}
|
||||||
await Promise.all(animations);
|
await Promise.all(animations);
|
||||||
if (tabToSelect) {
|
if (tabToSelect) {
|
||||||
tabToSelect._visuallySelected = false;
|
tabToSelect._visuallySelected = true;
|
||||||
}
|
}
|
||||||
this._animatingChange = false;
|
this._animatingChange = false;
|
||||||
}
|
}
|
||||||
@@ -1592,7 +1592,7 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Show if tab belongs to current workspace
|
// Show if tab belongs to current workspace
|
||||||
return true;
|
return tabWorkspaceId === workspaceUuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
async _handleTabSelection(window, onInit, containerId, workspaces, previousWorkspaceId) {
|
async _handleTabSelection(window, onInit, containerId, workspaces, previousWorkspaceId) {
|
||||||
|
Reference in New Issue
Block a user