Thread
: [SailfishOS]
[Announce] Rockpool - Pebble daemon for Sailfish
View Single Post
abranson
2016-04-12 , 07:56
Posts: 287 | Thanked: 862 times | Joined on Dec 2015
#
281
Originally Posted by
ruff
value("true").toInt() == 1
I was just a little bit sick in my mouth
Can you replicate that? Everyone seems to be getting a 0 there, including me, but stupidly I didn't notice before because I'd repaired my watch and so had a fresh file. I assumed that converting it directly to an int would return 0 for any string that wouldn't parse as an int, for the sake of the children. I've added a bit of a dirty hack to skip the parsing and return Enabled when the value is "true", but I'd remove it if I could.
Quote & Reply
|
The Following User Says Thank You to abranson For This Useful Post:
Feathers McGraw
abranson
View Public Profile
Send a private message to abranson
Find all posts by abranson