cleanup WindowManager

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-05-04 08:47:20 -04:00
1 parent 25796b736d
commit 31544a386a
1 file changed
+1 -3
+1 -3
View File
@@ -41,12 +41,10 @@ export class WindowManager extends Singleton {
private async initMainWindow(showSplash: boolean): Promise<BrowserWindow> { private async initMainWindow(showSplash: boolean): Promise<BrowserWindow> {
// Manage main window size and position with state persistence // Manage main window size and position with state persistence
if (!this.windowState) { this.windowState ??= windowStateKeeper({
this.windowState = windowStateKeeper({
defaultHeight: 900, defaultHeight: 900,
defaultWidth: 1440, defaultWidth: 1440,
}); });
}
if (!this.mainWindow) { if (!this.mainWindow) {
// show icon in dock (mac-os only) // show icon in dock (mac-os only)