Skip to content

Commit

Permalink
Bring window on top only when hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Sep 24, 2017
1 parent 9d8eaa3 commit 1b4928d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ exports.create = win => {
const iconPath = path.join(__dirname, 'static/IconTray.png');

const toggleWin = () => {
if (win.isVisible()) {
win.hide();
} else {
// Bring window on top if not visible
if (!win.isVisible()) {
win.show();
}
};
Expand Down

0 comments on commit 1b4928d

Please sign in to comment.