From a2c39358ef9da1fad82e85e4e34d58c5b0eb28a0 Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 7 Oct 2020 23:31:52 +0300 Subject: [PATCH] small fix Signed-off-by: Roman --- src/main/window-manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/window-manager.ts b/src/main/window-manager.ts index 8bcdd8d6f9..db2f5983dd 100644 --- a/src/main/window-manager.ts +++ b/src/main/window-manager.ts @@ -130,11 +130,11 @@ export class WindowManager { await callback(this.mainWindow); } else { this.ensureTrayWindow(); - if (this.mainWindow) this.mainWindow.hide(); + this.mainWindow?.hide(); this.trayWindow.show(); await callback(this.trayWindow); this.trayWindow.hide(); - if (this.mainWindow) this.mainWindow.hide(); + this.mainWindow?.show(); app.hide(); } }