mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Fix tray window listeners not working after closing the window
This commit is contained in:
@@ -93,7 +93,7 @@ export class Main {
|
|||||||
this.storageService = new ElectronStorageService(app.getPath('userData'), storageDefaults);
|
this.storageService = new ElectronStorageService(app.getPath('userData'), storageDefaults);
|
||||||
|
|
||||||
this.windowMain = new WindowMain(this.storageService, true, undefined, undefined,
|
this.windowMain = new WindowMain(this.storageService, true, undefined, undefined,
|
||||||
(arg) => this.processDeepLink(arg));
|
(arg) => this.processDeepLink(arg), (win) => this.trayMain.setupWindowListeners(win));
|
||||||
this.messagingMain = new MessagingMain(this, this.storageService);
|
this.messagingMain = new MessagingMain(this, this.storageService);
|
||||||
this.updaterMain = new UpdaterMain(this.i18nService, this.windowMain, 'desktop', () => {
|
this.updaterMain = new UpdaterMain(this.i18nService, this.windowMain, 'desktop', () => {
|
||||||
this.menuMain.updateMenuItem.enabled = false;
|
this.menuMain.updateMenuItem.enabled = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user