Jump to content

Saving Plugin Configuration on c# side


Anthony Musgrove
Go to solution Solved by Anthony Musgrove,

Recommended Posts

Anthony Musgrove

Hi again!

 

I know how to save Plugin configuration using the ApiClient in Javascript.   But is there a way to save Plugin configuration on c# side?

 

Usecase - I'm adding an installed package to the configuration (which is a List), I add to it.   It doesn't automagically save out to the XML file.

 

I just need something like Plugin.getConfiguration().Save (to XML file).

 

 

Adding to config:

 

Plugin.getConfiguration().InstalledPackages.Add(this_installed_package);
 
 
Thank you!
Link to comment
Share on other sites

  • Solution
Anthony Musgrove

Nevermind, found it thank you.  Plugin.Instance.SaveConfiguration()   <3

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...