mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
chore: upgrade to electron v9
This commit is contained in:
parent
d7d8d96f33
commit
d3e561771e
7 changed files with 359 additions and 359 deletions
|
|
@ -1,16 +0,0 @@
|
|||
diff --git a/node_modules/menubar/lib/Menubar.js b/node_modules/menubar/lib/Menubar.js
|
||||
index 3ed44a4..e08a63e 100644
|
||||
--- a/node_modules/menubar/lib/Menubar.js
|
||||
+++ b/node_modules/menubar/lib/Menubar.js
|
||||
@@ -244,7 +244,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*/];
|
||||
Loading…
Add table
Add a link
Reference in a new issue