diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts index b5090c23696..bf84869d85e 100644 --- a/apps/desktop/src/main.ts +++ b/apps/desktop/src/main.ts @@ -98,9 +98,6 @@ export class Main { this.windowMain = new WindowMain( this.stateService, this.logService, - true, - undefined, - undefined, (arg) => this.processDeepLink(arg), (win) => this.trayMain.setupWindowListeners(win) ); diff --git a/apps/desktop/src/main/window.main.ts b/apps/desktop/src/main/window.main.ts index b1d88a821f4..e4489f70203 100644 --- a/apps/desktop/src/main/window.main.ts +++ b/apps/desktop/src/main/window.main.ts @@ -20,12 +20,12 @@ export class WindowMain { private windowStates: { [key: string]: WindowState } = {}; private enableAlwaysOnTop = false; + readonly defaultWidth = 950; + readonly defaultHeight = 600; + constructor( private stateService: StateService, private logService: LogService, - private hideTitleBar = false, - private defaultWidth = 950, - private defaultHeight = 600, private argvCallback: (argv: string[]) => void = null, private createWindowCallback: (win: BrowserWindow) => void ) {} @@ -118,7 +118,7 @@ export class WindowMain { y: this.windowStates[mainWindowSizeKey].y, title: app.name, icon: process.platform === "linux" ? path.join(__dirname, "/images/icon.png") : undefined, - titleBarStyle: this.hideTitleBar && process.platform === "darwin" ? "hiddenInset" : undefined, + titleBarStyle: process.platform === "darwin" ? "hiddenInset" : undefined, show: false, backgroundColor: "#fff", alwaysOnTop: this.enableAlwaysOnTop,