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
MediaPortal 1 Plugins
Popular Plugins
Fanart Handler
Fanart Handler Plugin v4.0.X.000
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="XMaM" data-source="post: 1175489" data-attributes="member: 134551"><p>[USER=68833]@ajs[/USER]</p><p>I found something strange for me in the source code:</p><p>File: Utils.cs, lines 1681, 1682, function LoadSettings()</p><p></p><p>[code=csharp]UseMyPicturesSlideShow = settings.GetValueAsBool("FanartHandler", "UseMyPicturesSlideShow", UseMyPicturesSlideShow);</p><p>UseMyPicturesSlideShow = settings.GetValueAsBool("FanartHandler", "FastScanMyPicturesSlideShow", FastScanMyPicturesSlideShow);[/code]</p><p></p><p>In the second line, UseMyPicturesSlideShow is loaded again with the value obtained from FastScanMyPicturesSlideShow. As far as I can see, this isn't used in FanartHandler.xml, so is loaded with the default value: false.</p><p></p><p>In fact, in function SaveSettings(), lines 1797-1798, the "parallel" line is comented, so from here, FastScanMyPicturesSlideShow is never stored:</p><p>[code=csharp]xmlwriter.SetValueAsBool("FanartHandler", "UseMyPicturesSlideShow", UseMyPicturesSlideShow);</p><p>// xmlwriter.SetValueAsBool("FanartHandler", "FastScanMyPicturesSlideShow", FastScanMyPicturesSlideShow);[/code]</p><p></p><p></p><p>Also in LoadMyPicturesSlideShowFolders() (line 1451), the first check don't load the folders if UseMyPicturesSlideShow is false</p><p>[code=csharp] public static void LoadMyPicturesSlideShowFolders()</p><p> {</p><p> if (!UseMyPicturesSlideShow)</p><p> return; </p><p></p><p> try</p><p> {[/code]</p><p></p><p></p><p>In this case, probably will be better load folder settings regardless of the value in UseMyPicturesSlideShow. Maybe someone wants deactivate temporarily UseMyPicturesSlideShow but retaining his folder configuración. The same when saving.</p><p></p><p>I hope this can help. Thanks.</p></blockquote><p></p>
[QUOTE="XMaM, post: 1175489, member: 134551"] [USER=68833]@ajs[/USER] I found something strange for me in the source code: File: Utils.cs, lines 1681, 1682, function LoadSettings() [code=csharp]UseMyPicturesSlideShow = settings.GetValueAsBool("FanartHandler", "UseMyPicturesSlideShow", UseMyPicturesSlideShow); UseMyPicturesSlideShow = settings.GetValueAsBool("FanartHandler", "FastScanMyPicturesSlideShow", FastScanMyPicturesSlideShow);[/code] In the second line, UseMyPicturesSlideShow is loaded again with the value obtained from FastScanMyPicturesSlideShow. As far as I can see, this isn't used in FanartHandler.xml, so is loaded with the default value: false. In fact, in function SaveSettings(), lines 1797-1798, the "parallel" line is comented, so from here, FastScanMyPicturesSlideShow is never stored: [code=csharp]xmlwriter.SetValueAsBool("FanartHandler", "UseMyPicturesSlideShow", UseMyPicturesSlideShow); // xmlwriter.SetValueAsBool("FanartHandler", "FastScanMyPicturesSlideShow", FastScanMyPicturesSlideShow);[/code] Also in LoadMyPicturesSlideShowFolders() (line 1451), the first check don't load the folders if UseMyPicturesSlideShow is false [code=csharp] public static void LoadMyPicturesSlideShowFolders() { if (!UseMyPicturesSlideShow) return; try {[/code] In this case, probably will be better load folder settings regardless of the value in UseMyPicturesSlideShow. Maybe someone wants deactivate temporarily UseMyPicturesSlideShow but retaining his folder configuración. The same when saving. I hope this can help. Thanks. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Fanart Handler
Fanart Handler Plugin v4.0.X.000
Contact us
RSS
Top
Bottom