mirror of
https://github.com/zen-browser/components.git
synced 2025-07-08 00:49:58 +02:00
fix: Await workspace save in changeWorkspace
This change ensures that the `unsafeSaveWorkspaces` function is called asynchronously. This is necessary to prevent blocking the UI thread while saving the workspaces.
This commit is contained in:
parent
95af4ba082
commit
f4c876c8de
1 changed files with 1 additions and 1 deletions
|
@ -488,7 +488,7 @@ var ZenWorkspaces = {
|
|||
for (let workspace of workspaces.workspaces) {
|
||||
workspace.used = workspace.uuid === window.uuid;
|
||||
}
|
||||
this.unsafeSaveWorkspaces(workspaces);
|
||||
await this.unsafeSaveWorkspaces(workspaces);
|
||||
console.info('ZenWorkspaces: Changing workspace to', window.uuid);
|
||||
for (let i = 0; i < gBrowser.tabs.length; i++) {
|
||||
let tab = gBrowser.tabs[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue