From 5187150e3f5baa7e65cb4f8acd68dd8376cdae6c Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Tue, 6 Aug 2024 15:32:29 -0700 Subject: [PATCH] await more async functions in emain --- emain/emain.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emain/emain.ts b/emain/emain.ts index 33be2242f..25f401073 100644 --- a/emain/emain.ts +++ b/emain/emain.ts @@ -806,13 +806,13 @@ async function appMain() { const ready = await waveSrvReady; console.log("wavesrv ready signal received", ready, Date.now() - startTs, "ms"); await electronApp.whenReady(); - relaunchBrowserWindows(); + await relaunchBrowserWindows(); await configureAutoUpdater(); globalIsStarting = false; - electronApp.on("activate", () => { + electronApp.on("activate", async () => { if (electron.BrowserWindow.getAllWindows().length === 0) { - createNewWaveWindow(); + await createNewWaveWindow(); } }); }