diff --git a/src/electron/tray.main.ts b/src/electron/tray.main.ts index e7418e06d9..7e31b632fd 100644 --- a/src/electron/tray.main.ts +++ b/src/electron/tray.main.ts @@ -80,7 +80,7 @@ export class TrayMain { this.windowMain.win.on('show', async (e: Event) => { const enableTray = await this.storageService.get(ElectronConstants.enableTrayKey); if (!enableTray) { - this.removeTray(false); + setTimeout(() => this.removeTray(false), 100); } }); }