Skip to content

Commit

Permalink
Improved toggling functionality of the main window
Browse files Browse the repository at this point in the history
  • Loading branch information
klaudiosinani committed Dec 27, 2018
1 parent 75c9299 commit eb60edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/win.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,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 eb60edc

Please sign in to comment.