custom-electron-titlebar 4.2.1 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -262,6 +262,7 @@ class CustomTitlebar extends _get__("themebar_1").ThemeBar {
262
262
  }
263
263
  updateMenu(menu) {
264
264
  if (_get__("platform_1").isMacintosh || !menu) return;
265
+ if (this.menuBar) this.menuBar.dispose();
265
266
  this.menuBar = new (_get__("menubar_1").MenuBar)(this.menuBarContainer, _get__("consts_1").menuIcons, this.currentOptions, {
266
267
  enableMnemonics: true
267
268
  }, this.closeMenu); // TODO: Verify menubar options
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "custom-electron-titlebar",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "Library for electron that allows you to configure a fully customizable title bar.",
5
5
  "types": "./dist/index.d.ts",
6
6
  "typesVersions": {