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