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

adjustments to close to tray changes

This commit is contained in:
Kyle Spearrin 2018-12-03 16:06:28 -05:00
parent d5308a3bf5
commit 1da72b9a97
2 changed files with 2 additions and 4 deletions

View File

@ -93,7 +93,7 @@ export class BaseMenu {
}, },
{ {
label: this.i18nService.t('close'), label: this.i18nService.t('close'),
role: 'quit', role: 'close',
}, },
], ],
}; };

View File

@ -66,9 +66,7 @@ export class TrayMain {
this.hideToTray(); this.hideToTray();
} }
}); });
}
if (process.platform === 'win32') {
this.windowMain.win.on('close', async (e: Event) => { this.windowMain.win.on('close', async (e: Event) => {
if (await this.storageService.get<boolean>(ElectronConstants.enableCloseToTrayKey)) { if (await this.storageService.get<boolean>(ElectronConstants.enableCloseToTrayKey)) {
if (!this.windowMain.isQuitting) { if (!this.windowMain.isQuitting) {