Skip to content

Commit

Permalink
Merge pull request #213 from huxiaoxi1992/master
Browse files Browse the repository at this point in the history
fix: 后台运行时启动新程序主窗口不激活
  • Loading branch information
listen1 authored Oct 29, 2020
2 parents e18824e + c80af65 commit 33b0bd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ if (!gotTheLock) {
if (mainWindow) {
if (mainWindow.isMinimized()) mainWindow.restore()
mainWindow.focus()
// When start a new instance, show the main window and active in taskbar.
mainWindow.show()
mainWindow.setSkipTaskbar(false)
}
})

Expand Down

0 comments on commit 33b0bd4

Please sign in to comment.