beautify code
This commit is contained in:
12
src/main.js
12
src/main.js
@@ -129,12 +129,12 @@ const trayImages = function() {
|
|||||||
var willAppQuit = false;
|
var willAppQuit = false;
|
||||||
|
|
||||||
// If there is already an instance, activate the window in the existing instace and quit this one
|
// If there is already an instance, activate the window in the existing instace and quit this one
|
||||||
if(app.makeSingleInstance((commandLine, workingDirectory) => {
|
if (app.makeSingleInstance((commandLine, workingDirectory) => {
|
||||||
// Someone tried to run a second instance, we should focus our window.
|
// Someone tried to run a second instance, we should focus our window.
|
||||||
if (mainWindow) {
|
if (mainWindow) {
|
||||||
mainWindow.show()
|
mainWindow.show()
|
||||||
}
|
}
|
||||||
})) {
|
})) {
|
||||||
app.quit()
|
app.quit()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user