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) => {
|
||||
const enableTray = await this.storageService.get<boolean>(ElectronConstants.enableTrayKey);
|
||||
if (!enableTray) {
|
||||
this.removeTray(false);
|
||||
setTimeout(() => this.removeTray(false), 100);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue