Mercurial > libervia-backend
changeset 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 | f9167c053475 |
children | 70399d1acb47 |
files | frontends/src/jp/xmlui_manager.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
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):