also show window if not visible

This commit is contained in:
Kyle Spearrin 2019-07-09 08:53:38 -04:00
parent a631bd990a
commit 6789b8c8a2
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ export class WindowMain {
app.on('second-instance', (event, commandLine, workingDirectory) => { app.on('second-instance', (event, 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 (this.win != null) { if (this.win != null) {
if (this.win.isMinimized()) { if (this.win.isMinimized() || !this.win.isVisible()) {
this.win.show(); this.win.show();
} }
this.win.focus(); this.win.focus();