fix: update app initialization to use whenReady for better reliability

This commit is contained in:
HorizonCode 2025-05-14 11:10:18 +02:00
parent c3cf45d61d
commit c38965794a

View File

@ -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 () {