Fix screen stacking bug

You can no longer open a whole stack of Prefs windows, or Create Torrent windows

Simplifies and fixes behavior when dropping files onto the app or the dock icon. Before, you could use drag-drop to create stacks of Create Torrent windows. Now, you can only create torrents from the home screen.

Fixes #665
This commit is contained in:
DC
2016-08-10 00:53:27 -07:00
parent 563e1ca0ba
commit 4d48b9e7c1
12 changed files with 91 additions and 92 deletions

View File

@@ -1,8 +1,7 @@
module.exports = {
hasTray,
init,
onWindowBlur,
onWindowFocus
setWindowFocus
}
var electron = require('electron')
@@ -31,12 +30,7 @@ function hasTray () {
return !!tray
}
function onWindowBlur () {
if (!tray) return
updateTrayMenu()
}
function onWindowFocus () {
function setWindowFocus (flag) {
if (!tray) return
updateTrayMenu()
}