mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-16 01:21:48 +01:00
set 100ms timeout on removing tray to fix crash
This commit is contained in:
parent
5c1b80ee87
commit
393f6c9c20
@ -80,7 +80,7 @@ export class TrayMain {
|
|||||||
this.windowMain.win.on('show', async (e: Event) => {
|
this.windowMain.win.on('show', async (e: Event) => {
|
||||||
const enableTray = await this.storageService.get<boolean>(ElectronConstants.enableTrayKey);
|
const enableTray = await this.storageService.get<boolean>(ElectronConstants.enableTrayKey);
|
||||||
if (!enableTray) {
|
if (!enableTray) {
|
||||||
this.removeTray(false);
|
setTimeout(() => this.removeTray(false), 100);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user