refactor: Remove redundant tab refresh during initialization and streamline workspace startup process

This commit is contained in:
mr. M
2024-11-08 20:07:02 +01:00
parent d2746689f9
commit d7a48bd855
4 changed files with 12 additions and 5 deletions

View File

@@ -58,6 +58,13 @@ var ZenWorkspacesStorage = {
await db.execute(`
CREATE INDEX IF NOT EXISTS idx_zen_workspaces_changes_uuid ON zen_workspaces_changes(uuid)
`);
if (!Weave.Service.engineManager.get('workspaces')) {
Weave.Service.engineManager.register(ZenWorkspacesEngine);
await ZenWorkspacesStorage.migrateWorkspacesFromJSON();
}
ZenWorkspaces._delayedStartup();
});
},