Author Topic: How to remove the dockable plugin panel from the main view?  (Read 6539 times)

codingduo

  • Newbie
  • *
  • Posts: 19
Hi,

we're using the OnDockablePanelCreated() method and would like to remove the panel after the user disables our plugin it in the preferences. The dockable panel doesn't disappear completely even when we call mbApiInterface.MB_RemovePanel(ourPanel). Thank you for any advice!

Best regards

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34351
The only way currently is for the user to remove the panel via the layout dialog, however I have added support for automatic removal of the panel when the plugin is disabled/uninstalled. No need to call mbApiInterface.MB_RemovePanel()
https://getmusicbee.com/patches/MusicBee34_Patched.zip
unzip and replace the existing musicbee application files
Last Edit: November 04, 2020, 09:55:49 AM by Steven

codingduo

  • Newbie
  • *
  • Posts: 19