2015-08-17, 21:50
My addon does something like this:
What I'm having trouble figuring out is how to write the USER_CLICKED_OK condition: how do I detect whether the user clicked OK or Cancel in the (fairly basic) settings dialog I have popped up?
Code:
myAddon = xbmcaddon.Addon()
if a_certain_condition:
myAddon.openSettings()
if USER_CLICKED_OK:
DoMeaningfulStuff()
else:
exit()
What I'm having trouble figuring out is how to write the USER_CLICKED_OK condition: how do I detect whether the user clicked OK or Cancel in the (fairly basic) settings dialog I have popped up?