prevent duplicate windows when running on dev

This commit is contained in:
Zamitto 2024-05-19 14:56:06 -03:00
parent b9f5baef34
commit 33c6203f29

View file

@ -54,6 +54,8 @@ export class WindowManager {
}
public static createSplashScreen() {
if (this.splashWindow) return;
this.splashWindow = new BrowserWindow({
width: 400,
height: 400,
@ -70,7 +72,8 @@ export class WindowManager {
}
public static createMainWindow() {
// Create the browser window.
if (this.mainWindow) return;
this.mainWindow = new BrowserWindow({
width: 1200,
height: 720,