fix: update app initialization to use whenReady for better reliability
This commit is contained in:
parent
c3cf45d61d
commit
c38965794a
2
main.js
2
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 () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user