mirror of
https://github.com/upscayl/upscayl.git
synced 2026-04-03 03:00:13 -04:00
Delay showing mainWindow until Electron is ready
This commit is contained in:
@@ -36,6 +36,7 @@ app.on("ready", async () => {
|
||||
height: 700,
|
||||
minHeight: 500,
|
||||
minWidth: 500,
|
||||
show: false,
|
||||
backgroundColor: "#171717",
|
||||
webPreferences: {
|
||||
devTools: isDev,
|
||||
@@ -62,6 +63,8 @@ app.on("ready", async () => {
|
||||
return { action: "deny" };
|
||||
});
|
||||
|
||||
mainWindow.once("ready-to-show", () => { mainWindow.show(); })
|
||||
|
||||
if (!isDev) {
|
||||
autoUpdater.checkForUpdates();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user