Skip to content

Commit

Permalink
🐛 Fix: mini window not always on top after reopen
Browse files Browse the repository at this point in the history
  • Loading branch information
Wave-SYJ authored and Molunerfinn committed Jan 20, 2022
1 parent 1212774 commit c79a286
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/events/ipcList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,11 @@ export default {
ipcMain.on('openMiniWindow', () => {
const miniWindow = windowManager.get(IWindowList.MINI_WINDOW)!
const settingWindow = windowManager.get(IWindowList.SETTING_WINDOW)!

if (db.get('settings.miniWindowOntop')) {
miniWindow.setAlwaysOnTop(true)
}

miniWindow.show()
miniWindow.focus()
settingWindow.hide()
Expand Down

0 comments on commit c79a286

Please sign in to comment.