getmusicbee.com

Support => Developers' Area => MusicBee API => Topic started by: karaluh on April 05, 2020, 09:26:57 PM

Title: Newbie question: how to save plugin settings?
Post by: karaluh on April 05, 2020, 09:26:57 PM
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?
Title: Re: Newbie question: how to save plugin settings?
Post by: karaluh on April 16, 2020, 09:53:46 PM
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.