UI: Fix option control display for floating point params (#1711)

This commit is contained in:
Christopher Haucke
2026-02-21 20:01:27 -05:00
committed by GitHub
parent 5ccabb9d54
commit 082cf39d73
@@ -44,7 +44,8 @@ class OptionControlSP(ItemAction):
self.current_value = int(key)
break
else:
self.current_value = int(self.params.get(self.param_key, return_default=True))
value = self.params.get(self.param_key, return_default=True)
self.current_value = int(float(value) * 100.0) if self.use_float_scaling else int(value)
# Initialize font and button styles
self._font = gui_app.font(FontWeight.MEDIUM)