From 76f54a4f2116f196bf43323b3957b425a67d4a9f Mon Sep 17 00:00:00 2001 From: Mauro Balades Date: Thu, 22 Aug 2024 20:34:39 +0200 Subject: [PATCH] Fixed changing workspaces again --- src/ZenWorkspaces.mjs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ZenWorkspaces.mjs b/src/ZenWorkspaces.mjs index e630c8c..45502b8 100644 --- a/src/ZenWorkspaces.mjs +++ b/src/ZenWorkspaces.mjs @@ -143,7 +143,7 @@ var ZenWorkspaces = { async unsafeSaveWorkspaces(workspaces) { await IOUtils.writeJSON(this._storeFile, workspaces); - this._workspaceCache = null; + this._workspaceCache = workspaces; }, // Workspaces dialog UI management @@ -467,10 +467,10 @@ var ZenWorkspaces = { await this.changeWorkspace(workspace); }, - contextDelete(event) { - event.stopPropagation(); + async contextDelete(event) { this.__contextIsDelete = true; - this.removeWorkspace(this._contextMenuId); + event.stopPropagation(); + await this.removeWorkspace(this._contextMenuId); this.__contextIsDelete = false; },