From c38965794a6895abf9d0acb1345adba5321a5cfd Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Wed, 14 May 2025 11:10:18 +0200 Subject: [PATCH] fix: update app initialization to use whenReady for better reliability --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index ea3dd75..12ea4f3 100644 --- a/main.js +++ b/main.js @@ -870,7 +870,7 @@ function createWindow() { // This method will be called when Electron has finished // initialization and is ready to create browser windows. // Some APIs can only be used after this event occurs. -app.on("ready", createWindow); +app.whenReady().then(createWindow) // Quit when all windows are closed. app.on("window-all-closed", async function () {