Primitivus (xmlui): use constants for BOOL_TRUE and BOOL_FALSE value
This commit is contained in:
parent
6782bb9a3b
commit
f237685c1a
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ class PrimitivusBoolWidget(xmlui.BoolWidget, urwid.CheckBox, PrimitivusEvents):
|
|||
self.set_state(value == "true")
|
||||
|
||||
def _xmluiGetValue(self):
|
||||
return "true" if self.get_state() else "false"
|
||||
return C.BOOL_TRUE if self.get_state() else C.BOOL_FALSE
|
||||
|
||||
|
||||
class PrimitivusIntWidget(xmlui.IntWidget, sat_widgets.AdvancedEdit, PrimitivusEvents):
|
||||
|
|
|
|||
Loading…
Reference in a new issue