Hi,
is it possible to modify and save the user preferences without using ugly hacks?
I have some automagic in my plugin code that can detect some important settings for the user.
But as it is right now I can only display those settings and beg for the user to write them down
just to open preferences and type them back in (which is not satisfying for a 32bit uuid…).
Any help is appreciated.
P.S. I’m on Plex/nine and have access to v2 Frameworks.
–
Cheers,
Shirk
What sort of user prefs are you referring to? Is it the PMS prefs that you want to access/change from within your plugin?
I'm referring to my plugins own preferences.
No system or PMS settings only my private little plugin configuration (the one accessible vie Prefs['key'])
The only way to change prefs (that I’m aware of) is from the Prefs menu item. If you want to add a “pref” that doesn’t require user interaction, it doesn’t need to be Pref[“key”] per se. You can add it to the plugin Dict as
Dict["key"] = "long awkward string"
This might require some less than pretty coding to make sure that the value can be retrieved from somewhere and saved, and perhaps replaced later on, but it shouldn't be too ugly.
-Edit-
I should mention that the plugin Dict persists through restarts
Thanks, I think that will work for now.
I'm just going to put the UUID in the Prefs as well as in the Dict.
The Prefs version will be set by the user, the Dict version will by my automagic - with this I can add an enum to choose "prefs" or "scanning"
Sounds like a plan ;)
--
Cheers,
Shirk
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.