Fix main window maximization from splash

The code checks whether the initial window is maximized, if so, it leaves the main window also maximized.
This commit is contained in:
Kdu 2024-05-24 12:46:37 -03:00
parent 83c32de0c2
commit e5cffbe598

View File

@ -119,6 +119,9 @@ export class WindowManager {
this.isReadyToShowMainWindow = true;
this.splashWindow?.close();
this.createMainWindow();
if (this.splashWindow?.isMaximized()) {
this.mainWindow?.maximize();
}
}
public static redirect(hash: string) {