Restore window properly when maximized
This commit is contained in:
@@ -132,7 +132,8 @@ var willAppQuit = false;
|
|||||||
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()
|
if (mainWindow.isMinimized()) mainWindow.restore();
|
||||||
|
else mainWindow.show();
|
||||||
}
|
}
|
||||||
})) {
|
})) {
|
||||||
app.quit()
|
app.quit()
|
||||||
|
Reference in New Issue
Block a user