Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
OothecaPickle committed Dec 3, 2024
1 parent c1ce474 commit f86ff20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function runApp() {
process.platform === 'darwin' ? app.focus({ steal: true }) : app.focus()
mainWindow.setAlwaysOnTop(true)
mainWindow.show()
setTimeout(function() { mainWindow.focus() }, 100)
setTimeout(function() { mainWindow.webContents.focus() }, 100)
mainWindow.moveTop()
process.platform === 'darwin' ? app.focus({ steal: true }) : app.focus()
mainWindow.setAlwaysOnTop(false)
Expand Down Expand Up @@ -806,7 +806,7 @@ function runApp() {
process.platform === 'darwin' ? app.focus({ steal: true }) : app.focus()
newWindow.setAlwaysOnTop(true)
newWindow.show()
setTimeout(function() { newWindow.focus() }, 100)
setTimeout(function() { newWindow.webContents.focus() }, 100)
newWindow.moveTop()
process.platform === 'darwin' ? app.focus({ steal: true }) : app.focus()
newWindow.setAlwaysOnTop(false)
Expand Down Expand Up @@ -1494,7 +1494,7 @@ function runApp() {
process.platform === 'darwin' ? app.focus({ steal: true }) : app.focus()
mainWindow.setAlwaysOnTop(true)
mainWindow.show()
setTimeout(function() { mainWindow.focus() }, 100)
setTimeout(function() { mainWindow.webContents.focus() }, 100)
mainWindow.moveTop()
process.platform === 'darwin' ? app.focus({ steal: true }) : app.focus()
mainWindow.setAlwaysOnTop(false)
Expand Down

0 comments on commit f86ff20

Please sign in to comment.