Path: fix LeadInOutDressup task panel showing wrong values on certain locales

This commit is contained in:
jffmichi
2023-10-06 05:53:19 +02:00
parent 43ebc1e6a3
commit ba94502a0c

View File

@@ -77,7 +77,7 @@ class SimpleEditPanel:
elif prop_type in PROP_TYPE_NUMERIC and widget_type == "QDoubleSpinBox":
self._fc[prop_name] = widget.value, widget.setValue
elif prop_type in PROP_TYPE_QTYES and widget_type == "QLineEdit":
self._fc[prop_name] = widget.text, lambda v: widget.setText(str(v))
self._fc[prop_name] = widget.text, lambda v: widget.setText(v.UserString)
else:
raise ValueError(
f"Unsupported connection between '{prop_type}' property and '{widget_type}' widget"