Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Commit

Permalink
[fix] configuration parameter: Show application in system dock
Browse files Browse the repository at this point in the history
  • Loading branch information
stenya committed Apr 23, 2021
1 parent 4435bdf commit 25cd1cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ivpn-ui",
"version": "3.3.7",
"version": "3.3.10",
"productName": "IVPN",
"description": "IVPN Client",
"author": "IVPN Limited",
Expand Down
7 changes: 4 additions & 3 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,12 @@ function createWindow(doNotShowWhenReady) {
win.loadURL("app://./index.html");
}

// show\hide app from system dock
updateAppDockVisibility();

if (doNotShowWhenReady != true) {
win.once("ready-to-show", () => {
win.show();
// show\hide app from system dock
updateAppDockVisibility();
});
}

Expand Down Expand Up @@ -881,7 +882,7 @@ function setAppDockVisibility(isShow) {
// macOS
if (app != null && app.dock != null) {
app.dock.hide(); // remove from dock
if (win) win.show(); // ensure window is still shown (sometimes on macOS window is jumping under other window)
if (win && win.isVisible()) win.show(); // ensure window is still shown (sometimes on macOS window is jumping under other window)
}

// Windows & Linux
Expand Down

0 comments on commit 25cd1cd

Please sign in to comment.