mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
prevent duplicate windows when running on dev
This commit is contained in:
parent
b9f5baef34
commit
33c6203f29
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue