TheQwertiest / CaTRoX_QWR

foobar2000 CUI theme
https://theqwertiest.github.io/CaTRoX_QWR/
105 stars 6 forks source link

Panel Crash (Playlist Mode: Menu Button) #24

Open angomania opened 2 years ago

angomania commented 2 years ago

When clicking the MENU button in playlist mode, the panel is crashing:

Error: Spider Monkey Panel v1.6.1 (Menu Bar: CaTRoX: Menu bar v5.0.0 by TheQwertiest)
_.menu is not a function

File: main.js
Line: 478, Column: 113
Stack trace:
  create_buttons/buttons.buttons.menu<@main.js:478:113
  _button/this.lbtn_up@helpers.js:153:18
  _buttons/this.lbtn_up@helpers.js:268:17
  Menu/this.on_mouse_lbtn_up@main.js:267:17
  on_mouse_lbtn_up@main.js:125:10
angomania commented 2 years ago

I was able to fix the error myself.

Edit "Foobar2000\foo_spider_monkeypanel\packages\{FAA21F07-9B8F-416A-B106-E552221388B7}\main.js" and replace ".menu" with "_menu**" in line 478.

Sakooooo commented 2 years ago

just made a pull request for this just need to wait for him to merge it

da3dsoul1 commented 1 year ago

It has another error though, after clicking menu button 6 times it crashes, any way to fix this?

Error: Spider Monkey Panel v1.6.1 (Menu Bar: CaTRoX: Menu bar v5.0.0 by TheQwertiest)
AppendTo failed:
WinAPI error:
  AppendMenu failed with error (0x579):
    Invalid menu handle.

File: helpers.js
Line: 652, Column: 13
Stack trace:
  _main_menu_helper@helpers.js:652:13
  _menu@helpers.js:616:13
  create_buttons/buttons.buttons.menu<@main.js:478:111
  _button/this.lbtn_up@helpers.js:153:18
  _buttons/this.lbtn_up@helpers.js:268:17
  Menu/this.on_mouse_lbtn_up@main.js:267:17
  on_mouse_lbtn_up@main.js:125:10