Skip to content

Commit

Permalink
(bug) The app window is not opening when starting the second app inst…
Browse files Browse the repository at this point in the history
…ance

#98
  • Loading branch information
stenya committed Nov 21, 2021
1 parent a14e5ec commit fe487e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ivpn-ui",
"version": "3.4.4",
"version": "3.4.5",
"productName": "IVPN",
"description": "IVPN Client",
"author": "IVPN Limited",
Expand Down
6 changes: 2 additions & 4 deletions ui/src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,8 @@ if (!gotTheLock) {
} else {
app.on("second-instance", () => {
// Someone tried to run a second instance, we should focus our window.
if (win) {
if (win.isMinimized()) win.restore();
win.focus();
}
console.log("The second app instance was tried to start.");
menuOnShow();
});
}

Expand Down

0 comments on commit fe487e5

Please sign in to comment.