Fixing unnoticed stuff.

This commit is contained in:
Vishal 2024-05-31 17:14:52 +05:30 committed by GitHub
parent 603d5bf6bb
commit 88b840f598
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,6 +109,9 @@ class ConfigNumberEdit:
self._value = bui.app.config.resolve(configkey)
except ValueError:
self._value = bui.app.config.get(configkey, fallback_value)
self._value = (self._minval if self._minval > self._value else
self._maxval if self._maxval < self._value else
self._value)
self._as_percent = as_percent
self._f = f