Major refactor -- split windows into separate files
This commit is contained in:
11
main/windows/util.js
Normal file
11
main/windows/util.js
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user