Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
Fix unable to close window when launching app with keyboard shortcut (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
quanglam2807 authored May 28, 2020
1 parent f6717e6 commit 601a23f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/menubar+8.0.2.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/menubar/lib/Menubar.js b/node_modules/menubar/lib/Menubar.js
index 3ed44a4..edc5d26 100644
--- a/node_modules/menubar/lib/Menubar.js
+++ b/node_modules/menubar/lib/Menubar.js
@@ -246,6 +246,8 @@ var Menubar = /** @class */ (function (_super) {
// https://github.com/maxogden/menubar/issues/233
this._browserWindow.setPosition(Math.round(x), Math.round(y));
this._browserWindow.show();
+ // backport fron this PR https://github.com/maxogden/menubar/pull/287
+ this._isVisible = true;
this.emit('after-show');
return [2 /*return*/];
}

0 comments on commit 601a23f

Please sign in to comment.