jp (xmlui): fixed workflow when value is for a BoolWidget

This commit is contained in:
Goffi 2017-10-31 23:51:19 +01:00
commit 4809f9aa38

View file

@ -433,7 +433,10 @@ class XMLUIPanel(xmlui_manager.XMLUIPanel):
return
elif isinstance(cmd, list):
name, value = cmd
self.widgets[name].value = value
widget = self.widgets[name]
if widget.type == 'bool':
value = C.bool(value)
widget.value = value
self.show()
def submitForm(self, callback=None):