chore: dynamic statusbar WIP

This commit is contained in:
aclist committed 2026-01-24 08:51:22 +09:00
1 parent 936bc074a5
commit e794aa82dc
6 files changed
+49 -87

No files matched your search

+2 -1
View File
@@ -67,13 +67,14 @@ class CalcDist(multiprocessing.Process):
self.result_queue.put([self.addr, dist, self.enum])
def compare(self, remote: str) -> int | None:
# TODO: cache this
prefs = self.controller.get_prefs()
local = prefs.coords
if local is None:
return None
try:
remote = get_coords(prefs.paths.ips, remote)
except GeolocationError:
except Exception:
return None
# TODO: handle failed remote dist