home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
Improvement Suggestions
Settings Configuration questions (dev purpose)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="framug" data-source="post: 236989" data-attributes="member: 19448"><p>Hello,</p><p></p><p>I found something weird in Settings Configuration but may be can you help me ?</p><p></p><p>In external MP plugins, when using this for saving parameters :</p><p></p><p>[code]</p><p>using (Settings xmlwriter = new Settings(Config.GetFile(Config.Dir.Config, "plugin_name.xml")))</p><p>{</p><p> xmlwriter.SetValue("plugin", "label", label.ToString());</p><p>}</p><p>[/code]</p><p></p><p>It appears that the effective write (real I/O) on xmlfile appears only when hiting OK button from main MP config window.</p><p>Then, if we have our own "save" button in our plugin, users can believe plugin's params are saved wrongly if they hit on cancel button after.</p><p></p><p>Maybe this was created this way only for internal MP plugins, for performance purpose or, for lock files problems ? Don't know.</p><p></p><p>Is it possible to correct that (if any) ?</p><p>Is there something missing in the plugin's code ?</p><p>Or, is it better to write directly own plugin xml file in this case ?</p><p>Many questions (sorry) but I would like to know.</p><p></p><p>Regards.</p></blockquote><p></p>
[QUOTE="framug, post: 236989, member: 19448"] Hello, I found something weird in Settings Configuration but may be can you help me ? In external MP plugins, when using this for saving parameters : [code] using (Settings xmlwriter = new Settings(Config.GetFile(Config.Dir.Config, "plugin_name.xml"))) { xmlwriter.SetValue("plugin", "label", label.ToString()); } [/code] It appears that the effective write (real I/O) on xmlfile appears only when hiting OK button from main MP config window. Then, if we have our own "save" button in our plugin, users can believe plugin's params are saved wrongly if they hit on cancel button after. Maybe this was created this way only for internal MP plugins, for performance purpose or, for lock files problems ? Don't know. Is it possible to correct that (if any) ? Is there something missing in the plugin's code ? Or, is it better to write directly own plugin xml file in this case ? Many questions (sorry) but I would like to know. Regards. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
Settings Configuration questions (dev purpose)
Contact us
RSS
Top
Bottom