mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
adjustments to close to tray changes
This commit is contained in:
@@ -93,7 +93,7 @@ export class BaseMenu {
|
||||
},
|
||||
{
|
||||
label: this.i18nService.t('close'),
|
||||
role: 'quit',
|
||||
role: 'close',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@@ -66,9 +66,7 @@ export class TrayMain {
|
||||
this.hideToTray();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
this.windowMain.win.on('close', async (e: Event) => {
|
||||
if (await this.storageService.get<boolean>(ElectronConstants.enableCloseToTrayKey)) {
|
||||
if (!this.windowMain.isQuitting) {
|
||||
|
||||
Reference in New Issue
Block a user