diff options
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/index.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index 402a0a35cb..95542e2cbd 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -1478,18 +1478,22 @@ class ApplicationMain { return appWindow; } - case 'win32': + case 'win32': { // setup window flags to mimic an overlay window - return new BrowserWindow({ + const appWindow = new BrowserWindow({ ...options, // Due to a bug in Electron the app is sometimes placed behind other apps when opened. // Setting alwaysOnTop to true ensures that the app is placed on top. Electron issue: // https://github.com/electron/electron/issues/25915 alwaysOnTop: !this.guiSettings.unpinnedWindow, skipTaskbar: !this.guiSettings.unpinnedWindow, - autoHideMenuBar: true, }); + appWindow.removeMenu(); + + return appWindow; + } + case 'linux': return new BrowserWindow({ ...options, |
