Author Topic: Newbie question: how to save plugin settings?  (Read 3910 times)

karaluh

  • Jr. Member
  • **
  • Posts: 30
I have no prior knowledge of neither C# nor Visual Studio but managed to finish the plugin tutorial. I did that because I want to write a ListenBrainz scrobbler. The first thing I need is a text box for user ID and a working save button in the configure dialog. I've set about.ConfigurationPanelHeight to a non-zero value and the textBox is displayed, but how do I save the settings? I suspect I have to call the SaveSettings() method but where in the code should I do it?
ListenBrainz plugin for MusicBee:
https://github.com/karaluh/ScrobblerBrainz

karaluh

  • Jr. Member
  • **
  • Posts: 30
Ok, I figured it out that saving plugin settings aren't handled by the API and you have to take care of your shit yourself. There is no need to call the SaveSettings method, you just have to implement everything you need to do in its body.
ListenBrainz plugin for MusicBee:
https://github.com/karaluh/ScrobblerBrainz