Refine ranch tree, growth sync and monitoring policies

This commit is contained in:
AttilaNet
2026-11-08 09:53:02 +08:00
parent a37627b490
commit 9611a3413f
24 changed files with 640 additions and 1227 deletions
+7 -1
View File
@@ -55,7 +55,13 @@ class IntegerInput(W.QLineEdit):
return self._value
def setValue(self, value):
self.setText(str(min(self._maximum, max(self._minimum, int(value)))))
value = min(self._maximum, max(self._minimum, int(value)))
changed = value != self._value
# Signal blockers must not prevent updates to the stored numeric value.
self._value = value
self.setText(str(value))
if changed:
self.valueChanged.emit(value)
def setRange(self, minimum, maximum):
self._minimum, self._maximum = int(minimum), int(maximum)