From 539248a623fe814de1e039e6f4c967fda518d44f Mon Sep 17 00:00:00 2001 From: mgmeyers Date: Tue, 7 May 2024 17:59:02 -0700 Subject: [PATCH] Delay blocking the UI until the the loading indicator is displayed --- src/StateManager.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/StateManager.ts b/src/StateManager.ts index e679bf79..165feb5f 100644 --- a/src/StateManager.ts +++ b/src/StateManager.ts @@ -55,6 +55,9 @@ export class StateManager { this.viewSet.add(view); } + // This helps delay blocking the UI until the the loading indicator is displayed + await new Promise((res) => activeWindow.setTimeout(res, 10)); + if (shouldParseData) { await this.newBoard(view, data); } else {