Added setting slider as optional for NumericOptions.

This commit is contained in:
jupfi 2024-05-28 15:54:11 +02:00
parent f5d2355060
commit 0f38478756

View file

@ -290,6 +290,12 @@ class PulseProgrammerView(ModuleView):
else:
slider = False
if not slider:
assert not option.slider, "Setting a slider is not possible without min and max values"
slider = option.slider
numeric_field = DuckFormFloatField(
option.name,
tooltip=None,