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() })