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:
parent
25796b736d
commit
31544a386a
@ -41,12 +41,10 @@ export class WindowManager extends Singleton {
|
||||
|
||||
private async initMainWindow(showSplash: boolean): Promise<BrowserWindow> {
|
||||
// Manage main window size and position with state persistence
|
||||
if (!this.windowState) {
|
||||
this.windowState = windowStateKeeper({
|
||||
defaultHeight: 900,
|
||||
defaultWidth: 1440,
|
||||
});
|
||||
}
|
||||
this.windowState ??= windowStateKeeper({
|
||||
defaultHeight: 900,
|
||||
defaultWidth: 1440,
|
||||
});
|
||||
|
||||
if (!this.mainWindow) {
|
||||
// show icon in dock (mac-os only)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user