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:
@@ -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[] = [
|
||||
|
||||
Reference in New Issue
Block a user