mirror of
https://github.com/nqrduck/nqrduck-pulseprogrammer.git
synced 2024-11-13 21:11:57 +00:00
Added setting slider as optional for NumericOptions.
This commit is contained in:
parent
f5d2355060
commit
0f38478756
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue