mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-11 22:06:17 +00:00
Update to fix main window maximizing from splash
The code checks whether the initial window starts maximized; If so, it prevents the splash from starting maximized and leaves the main window maximized.
This commit is contained in:
@@ -74,7 +74,7 @@ export class WindowManager {
|
||||
this.splashWindow.removeMenu();
|
||||
if (this.splashWindow?.isMaximized()) {
|
||||
this.splashWindow?.unmaximize();
|
||||
this.isMainMaximize = true;
|
||||
this.isMainMaximized = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ export class WindowManager {
|
||||
this.isReadyToShowMainWindow = true;
|
||||
this.splashWindow?.close();
|
||||
this.createMainWindow();
|
||||
if (this.isMainMaximize) this.mainWindow?.maximize();
|
||||
if (this.isMainMaximized) this.mainWindow?.maximize();
|
||||
}
|
||||
|
||||
public static redirect(hash: string) {
|
||||
|
||||
Reference in New Issue
Block a user