mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 16:53:57 +00:00
prevent duplicate windows when running on dev
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user