Skip to content

Commit

Permalink
Improved toggling functionality of the main app window
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Jan 3, 2019
1 parent df9b396 commit 43b44ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win.js
Expand Up @@ -62,7 +62,7 @@ class Win {

appear() {
const [win] = BrowserWindow.getAllWindows();
if (!win.isVisible()) {
if (!win.isVisible() || !win.isFocused()) {
win.show();
win.focus();
}
Expand Down

0 comments on commit 43b44ce

Please sign in to comment.