From 1f5f5dc5f05ee1f3981ba010d7464b9235dd4637 Mon Sep 17 00:00:00 2001 From: Shatyuka <958182453@qq.com> Date: Fri, 6 Aug 2021 00:17:54 +0800 Subject: [PATCH] fix: showWindow won't restore minimized window --- src/main/ui/WindowManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/ui/WindowManager.js b/src/main/ui/WindowManager.js index 2faebffd7..c47d343ff 100644 --- a/src/main/ui/WindowManager.js +++ b/src/main/ui/WindowManager.js @@ -202,7 +202,7 @@ export default class WindowManager extends EventEmitter { showWindow (page) { const window = this.getWindow(page) - if (!window || window.isVisible()) { + if (!window || (window.isVisible() && !window.isMinimized())) { return }