1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

cleanup WindowManager

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-04-25 13:10:43 -04:00
parent 25796b736d
commit 31544a386a

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)