Commit 7028e9b3 authored by Roman Alifanov's avatar Roman Alifanov

widgets: convert to int when digits is 0 in NumStepper

parent 3b9ac7ba
......@@ -69,6 +69,9 @@ class NumStepper(BaseWidget):
def _on_num_changed(self, widget):
selected_value = widget.get_value()
if self.spin.get_digits() == 0:
selected_value = int(selected_value)
self.setting._set_backend_value(selected_value)
self._update_reset_visibility()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment