jp (xmlui): fixed workflow when value is for a BoolWidget
This commit is contained in:
parent
dba43447aa
commit
4809f9aa38
1 changed files with 4 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue