feat: Make sure switching woprkspaces from browsers always selects the tab first, b=(no-bug), c=common, workspaces

This commit is contained in:
Mr. M
2025-05-12 22:48:09 +02:00
parent ffea12305d
commit fdb71c6b0e
2 changed files with 11 additions and 3 deletions

View File

@@ -3299,6 +3299,8 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature {
this._workspaceChangeInProgress = true;
try {
this._lastSelectedWorkspaceTabs[workspaceToSwitch.uuid] =
gZenGlanceManager.getTabOrGlanceParent(tab);
await this.changeWorkspace(workspaceToSwitch);
} finally {
this._workspaceChangeInProgress = false;