diff --git a/src/main/MainRunner.ts b/src/main/MainRunner.ts index 7f28c4ab..574acea2 100644 --- a/src/main/MainRunner.ts +++ b/src/main/MainRunner.ts @@ -40,15 +40,15 @@ export const createMainWindow = async (mainWindow: BrowserWindow): Promise { } macOSDisableDefaultMenuItem() - mainWindow = createMainWindow(mainWindow) + mainWindow = await createMainWindow(mainWindow) }) -app.on('activate', () => { +app.on('activate', async () => { if (!mainWindow) { - mainWindow = createMainWindow(mainWindow) + mainWindow = await createMainWindow(mainWindow) } })