Mercurial > libervia-backend
diff frontends/src/jp/xmlui_manager.py @ 2412:7641bef56dcd
jp (xmlui): fixed workflow when value is for a BoolWidget
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 31 Oct 2017 23:51:19 +0100 |
parents | 40e6e779a253 |
children | 8b37a62336c3 |
line wrap: on
line diff
--- a/frontends/src/jp/xmlui_manager.py Tue Oct 31 23:30:18 2017 +0100 +++ b/frontends/src/jp/xmlui_manager.py Tue Oct 31 23:51:19 2017 +0100 @@ -433,7 +433,10 @@ 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):