Refactor ZenViewSplitter to reset tab state when removing a group

This commit is contained in:
mauro-balades 2024-09-22 13:36:09 +02:00
parent 5c62458dcb
commit f56b8c0e59
2 changed files with 9 additions and 8 deletions

View file

@ -579,10 +579,6 @@ var ZenWorkspaces = {
let firstTab = undefined;
let workspaces = await this._workspaces();
for (let workspace of workspaces.workspaces) {
if (workspace.uuid === window.uuid && workspace.used) {
// If the workspace is already active, do nothing
return;
}
workspace.used = workspace.uuid === window.uuid;
}
await this.unsafeSaveWorkspaces(workspaces);