From 0f4901bdbf017f3beb83add4908bcfa2896737b7 Mon Sep 17 00:00:00 2001 From: Molunerfinn Date: Sat, 7 Jul 2018 14:45:14 +0800 Subject: [PATCH] Fixed: mini window & setting window toggle show or hide status --- src/main/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/index.js b/src/main/index.js index 25cd5d7..4ab0b2a 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -76,6 +76,9 @@ function createTray () { settingWindow.show() settingWindow.focus() } + if (miniWindow) { + miniWindow.hide() + } } }, { @@ -449,6 +452,7 @@ ipcMain.on('openMiniWindow', (evt) => { createMiniWidow() } miniWindow.show() + miniWindow.focus() settingWindow.hide() })