mirror of
https://github.com/bitwarden/desktop.git
synced 2024-09-30 04:18:01 +02: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 = {
|
const updateMenuItem = {
|
||||||
label: this.main.i18nService.t('checkForUpdates'),
|
label: this.main.i18nService.t('checkForUpdates'),
|
||||||
click: () => this.main.updaterMain.checkForUpdate(true),
|
click: () => this.main.updaterMain.checkForUpdate(true),
|
||||||
@ -404,11 +397,10 @@ export class MenuMain extends BaseMenu {
|
|||||||
} else {
|
} else {
|
||||||
// File menu
|
// File menu
|
||||||
template[0].submenu = (template[0].submenu as MenuItemConstructorOptions[]).concat(
|
template[0].submenu = (template[0].submenu as MenuItemConstructorOptions[]).concat(
|
||||||
firstMenuOptions);
|
firstMenuOptions, {
|
||||||
if(process.platform === 'linux' || process.platform === 'win32') {
|
label: this.i18nService.t('quitBitwarden'),
|
||||||
template[0].submenu = (template[0].submenu as MenuItemConstructorOptions[]).concat(
|
role: 'quit',
|
||||||
firstMenuOptionsWindowsLinux);
|
});
|
||||||
}
|
|
||||||
|
|
||||||
// About menu
|
// About menu
|
||||||
const aboutMenuAdditions: MenuItemConstructorOptions[] = [
|
const aboutMenuAdditions: MenuItemConstructorOptions[] = [
|
||||||
|
Loading…
Reference in New Issue
Block a user