fix(ui): handle missing or empty local version values and standardize defaults (#763)

This commit is contained in:
dw-0
2026-01-18 14:18:27 +01:00
committed by GitHub
parent f951936b20
commit 8ba134f574
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -257,14 +257,14 @@ class UpdateMenu(BaseMenu):
def _format_local_status(self, local_version, remote_version) -> str:
color = Color.RED
if not local_version:
if not local_version or local_version == '-':
color = Color.RED
elif local_version == remote_version:
color = Color.GREEN
elif local_version != remote_version:
color = Color.YELLOW
return Color.apply(local_version or "-", color)
return str(Color.apply(local_version or '-', color))
def _set_status_data(self, name: str, status_fn: Callable, *args) -> None:
comp_status: ComponentStatus = status_fn(*args)