mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-15 15:10:31 -08:00
16 lines
977 B
Diff
16 lines
977 B
Diff
diff --git a/node_modules/menubar/lib/Menubar.js b/node_modules/menubar/lib/Menubar.js
|
|
index c2cc450..ac90c9b 100644
|
|
--- a/node_modules/menubar/lib/Menubar.js
|
|
+++ b/node_modules/menubar/lib/Menubar.js
|
|
@@ -237,7 +237,10 @@ var Menubar = /** @class */ (function (_super) {
|
|
}
|
|
// `.setPosition` crashed on non-integers
|
|
// https://github.com/maxogden/menubar/issues/233
|
|
- this._browserWindow.setPosition(Math.round(x), Math.round(y));
|
|
+ const currentPosition = this._browserWindow.getPosition();
|
|
+ if (!(currentPosition && currentPosition[0] && currentPosition[1])) {
|
|
+ this._browserWindow.setPosition(Math.round(x), Math.round(y));
|
|
+ }
|
|
this._browserWindow.show();
|
|
this.emit('after-show');
|
|
return [2 /*return*/];
|