Posts: 823
Joined: Feb 2009
Reputation:
16
queeup
Posting Freak
Posts: 823
I wonder why addon setings type="bool" return string(str)? Don't you think returning bool better? Is it mistake or devs did it and like it like that?
Posts: 12,706
Joined: Nov 2003
Reputation:
129
spiff
Team-Kodi Member
Posts: 12,706
one function to handle them all or special casing per type.. easy choice.
Posts: 823
Joined: Feb 2009
Reputation:
16
queeup
Posting Freak
Posts: 823
2012-04-17, 11:56
(This post was last modified: 2012-04-17, 11:57 by queeup.)
OK then like always need ( if settings == 'true': ) for turn str to bool. Thx.
Posts: 17,859
Joined: Jul 2011
Reputation:
371
also if for example use a slider control and add option='int' it still returns something like '5.000000' so you need to strip all the zeros and the dot