mirror of
https://github.com/zen-browser/desktop.git
synced 2026-06-30 22:36:36 +00:00
no-bug: set last selected workspace tab to background tab (gh-14395)
This commit is contained in:
@@ -245,10 +245,6 @@ class nsZenSpaceRoutingManager {
|
||||
if (targetWorkspace) {
|
||||
workspaces.moveTabToWorkspace(newTab, targetWorkspace.uuid);
|
||||
|
||||
if (inBackground) {
|
||||
return;
|
||||
}
|
||||
|
||||
const mostRecentWindow =
|
||||
Services.wm.getMostRecentWindow("navigator:browser");
|
||||
const isOriginatingWindow = win === mostRecentWindow;
|
||||
@@ -256,7 +252,10 @@ class nsZenSpaceRoutingManager {
|
||||
win.gZenWorkspaces.lastSelectedWorkspaceTabs[
|
||||
targetWorkspace.uuid
|
||||
] = newTab;
|
||||
await win.gZenWorkspaces.changeWorkspace(targetWorkspace);
|
||||
|
||||
if (!inBackground) {
|
||||
await win.gZenWorkspaces.changeWorkspace(targetWorkspace);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user