Closed thundernet8 closed 7 years ago
// Make app single instance
let shouldQuit = app.makeSingleInstance(function (commandLine, workingDirectory) {
// Someone tried to run a second instance, we should focus our window.
if (win.login) {
win.login.focus()
}
if (win.main) {
if (win.main.isMinimized()) win.main.restore()
win.main.focus()
}
})