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:
1 parent
25796b736d
commit
31544a386a
1 file changed
+4
-6
@@ -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)
|
||||||
|
|||||||
Reference in new issue
Block a user