1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-09 09:51:02 +01:00

simplify quit bitwarden menu option

This commit is contained in:
Kyle Spearrin 2018-12-03 16:07:03 -05:00
parent 03117facbb
commit bfd8f55b4d
2 changed files with 5 additions and 13 deletions

2
jslib

@ -1 +1 @@
Subproject commit 5609fecbcee6d0608ea28985c31688511e735a59
Subproject commit 1da72b9a97111e2cf749dd6f18e85f98f321bf3d

View File

@ -367,13 +367,6 @@ export class MenuMain extends BaseMenu {
},
];
const firstMenuOptionsWindowsLinux: MenuItemConstructorOptions[] = [
{
label: this.i18nService.t('quitBitwarden'),
role: 'quit',
},
];
const updateMenuItem = {
label: this.main.i18nService.t('checkForUpdates'),
click: () => this.main.updaterMain.checkForUpdate(true),
@ -404,11 +397,10 @@ export class MenuMain extends BaseMenu {
} else {
// File menu
template[0].submenu = (template[0].submenu as MenuItemConstructorOptions[]).concat(
firstMenuOptions);
if(process.platform === 'linux' || process.platform === 'win32') {
template[0].submenu = (template[0].submenu as MenuItemConstructorOptions[]).concat(
firstMenuOptionsWindowsLinux);
}
firstMenuOptions, {
label: this.i18nService.t('quitBitwarden'),
role: 'quit',
});
// About menu
const aboutMenuAdditions: MenuItemConstructorOptions[] = [