mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
simplify quit bitwarden menu option
This commit is contained in:
parent
03117facbb
commit
bfd8f55b4d
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 5609fecbcee6d0608ea28985c31688511e735a59
|
||||
Subproject commit 1da72b9a97111e2cf749dd6f18e85f98f321bf3d
|
@ -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[] = [
|
||||
|
Loading…
Reference in New Issue
Block a user