1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

Close to tray (#168)

* Close to Tray implemented

* Enable Tray Icon on Linux

* Rever german locale

* Revert eaf730e51cd6ea025ba78a4e7904bc47e0b44147

* Show quit button in file menu only for linux and windows
This commit is contained in:
h44z
2018-12-03 21:55:55 +01:00
committed by Kyle Spearrin
parent 178053e9fd
commit 03117facbb
4 changed files with 34 additions and 0 deletions

View File

@@ -367,6 +367,13 @@ 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),
@@ -398,6 +405,10 @@ export class MenuMain extends BaseMenu {
// 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);
}
// About menu
const aboutMenuAdditions: MenuItemConstructorOptions[] = [