diff options
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/main/index.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index 7b63b11a28..61b689456c 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -1329,10 +1329,15 @@ class ApplicationMain { // On macOS, hotkeys are bound to the app menu and won't work if it's not set, // even though the app menu itself is not visible because the app does not appear in the dock. private setMacOsAppMenu() { + const mullvadVpnSubmenu: Electron.MenuItemConstructorOptions[] = [{ role: 'quit' }]; + if (process.env.NODE_ENV === 'development') { + mullvadVpnSubmenu.unshift({ role: 'reload' }, { role: 'forceReload' }); + } + const template: Electron.MenuItemConstructorOptions[] = [ { label: 'Mullvad VPN', - submenu: [{ role: 'quit' }], + submenu: mullvadVpnSubmenu, }, { label: 'Edit', |
