Update parameter.py to fix parameter being set from history

This commit is contained in:
Alexandre Leites 2023-03-14 14:28:22 +01:00 committed by GitHub
parent aeabbe64e2
commit fde41ac456
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,6 +75,7 @@ class HonParameterRange(HonParameter):
@value.setter
def value(self, value):
value = int(value)
if self._min <= value <= self._max and not value % self._step:
self._value = value
else: