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

Commit 601a23f

Browse files
authored
Fix unable to close window when launching app with keyboard shortcut (#169)
1 parent f6717e6 commit 601a23f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

patches/menubar+8.0.2.patch

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/node_modules/menubar/lib/Menubar.js b/node_modules/menubar/lib/Menubar.js
2+
index 3ed44a4..edc5d26 100644
3+
--- a/node_modules/menubar/lib/Menubar.js
4+
+++ b/node_modules/menubar/lib/Menubar.js
5+
@@ -246,6 +246,8 @@ var Menubar = /** @class */ (function (_super) {
6+
// https://github.com/maxogden/menubar/issues/233
7+
this._browserWindow.setPosition(Math.round(x), Math.round(y));
8+
this._browserWindow.show();
9+
+ // backport fron this PR https://github.com/maxogden/menubar/pull/287
10+
+ this._isVisible = true;
11+
this.emit('after-show');
12+
return [2 /*return*/];
13+
}

0 commit comments

Comments
 (0)