Skip to content

Commit

Permalink
fix: Fix double 'after-hide' event (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 authored Jun 8, 2019
1 parent c951e1c commit a4d900e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Menubar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class Menubar extends EventEmitter {
if (this._supportsTrayHighlightState) {
this.tray.setHighlightMode('never');
}
if (!this._browserWindow) {
if (!this._browserWindow || !this._browserWindow.isVisible()) {
return;
}

Expand Down

0 comments on commit a4d900e

Please sign in to comment.