diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-01-18 21:30:28 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-01-19 11:28:49 +0100 |
| commit | 850ef45249dd59cbd3944c5a3b2c48a4eef790e1 (patch) | |
| tree | 16062bb6ab317aeb345f8ed5dafce8ced5afd275 | |
| parent | 95e3e1d940eb34700a9e96d4f30a452b50c714d4 (diff) | |
| download | mullvadvpn-850ef45249dd59cbd3944c5a3b2c48a4eef790e1.tar.xz mullvadvpn-850ef45249dd59cbd3944c5a3b2c48a4eef790e1.zip | |
Remove menubar on Windows
| -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, |
