mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 17:53:39 +00:00
adjustments to close to tray changes
This commit is contained in:
@@ -66,12 +66,10 @@ 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){
|
||||
if (!this.windowMain.isQuitting) {
|
||||
e.preventDefault();
|
||||
this.hideToTray();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user