mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-06 22:54:16 +02:00
[arch] improvement -> AUR: the index is not always being updated during the initialization process
This commit is contained in:
@@ -191,11 +191,11 @@ class TextInputComponent(ViewComponent):
|
||||
if caller != o:
|
||||
o.on_change(val)
|
||||
|
||||
def get_int_value(self) -> int:
|
||||
def get_int_value(self) -> Optional[int]:
|
||||
if self.value is not None:
|
||||
val = self.value.strip() if isinstance(self.value, str) else self.value
|
||||
|
||||
if val:
|
||||
if val is not None:
|
||||
return int(self.value)
|
||||
|
||||
def get_label(self) -> str:
|
||||
|
||||
Reference in New Issue
Block a user