Major refactor -- split windows into separate files

This commit is contained in:
Feross Aboukhadijeh
2016-05-27 00:01:30 -07:00
parent 3757507b18
commit 001601bc5f
15 changed files with 464 additions and 358 deletions

11
main/windows/util.js Normal file
View File

@@ -0,0 +1,11 @@
module.exports = {
focusWindow
}
function focusWindow (win) {
if (win.isMinimized()) {
// TODO: can this be removed?
win.restore()
}
win.show() // shows and gives focus
}