Kodi Community Forum
Skin.SetPath not working?? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Skin.SetPath not working?? (/showthread.php?tid=97390)



Skin.SetPath not working?? - igotdvds - 2011-03-21

I am trying to set a default value with a separate button. My onclick looks like this:

Code:
<onclick>Skin.SetPath(Home_Custom_Back_Home_Folder,special://thumbnails/video/fanart)</onclick>

The problem is that the folder browser keeps popping up instead of it setting the default value. Ideas?


- jmarshall - 2011-03-22

I believe the second param to Skin.SetPath() tells you where to start in the browser, rather than setting it directly.

If you use Skin.SetString() you'll be able to set it.


- igotdvds - 2011-03-22

jmarshall Wrote:I believe the second param to Skin.SetPath() tells you where to start in the browser, rather than setting it directly.

If you use Skin.SetString() you'll be able to set it.

That did it. Thanks Jonathan!