[arch] improvement -> AUR: the index is not always being updated during the initialization process

This commit is contained in:
Vinicius Moreira
2020-12-21 16:08:45 -03:00
parent 7057f683cd
commit a9b196522d
18 changed files with 113 additions and 16 deletions

View File

@@ -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: