Remove focusWindow function

Not needed -- win.show() automatically focuses, unminimizes, and shows
the window.
This commit is contained in:
Feross Aboukhadijeh
2016-05-28 19:10:55 -07:00
parent 7833f6bbc4
commit d4efebd694
6 changed files with 7 additions and 28 deletions

View File

@@ -106,7 +106,7 @@ function onOpen (e, torrentId) {
// The confirmation dialog Chrome shows causes Chrome to steal back the focus.
// Electron issue: https://github.com/atom/electron/issues/4338
setTimeout(function () {
windows.main.focus()
windows.main.show()
}, 100)
} else {
argv.push(torrentId)
@@ -119,7 +119,7 @@ function onAppOpen (newArgv) {
if (app.ipcReady) {
log('Second app instance opened, but was prevented:', newArgv)
windows.main.focus()
windows.main.show()
processArgv(newArgv)
} else {