chore: clear typehinting errors

This commit is contained in:
aclist 2026-05-09 20:09:26 +09:00
parent b51b858e05
commit 6e29a716a5
2 changed files with 5 additions and 6 deletions

View File

@ -82,7 +82,7 @@ class ConnectionManager:
self.workshop: Path
self.remote_mod_ids: list[str] = []
self.missing_mods: list[str] = []
self.missing_mods: list[str, str, int, int] = []
@call_on_thread(dialog.querying)
def connect_by_id(self, _id: int, key: str) -> None:
@ -101,12 +101,12 @@ class ConnectionManager:
def _prepare_connection(self, res: "A2SInfo") -> None:
failure_func = StoredFunc(self._server_timeout)
if res.get_info() is None:
info = res.get_info()
if info is None:
self.thread_man.set_cleanup_func(failure_func, destroy_first=True)
return
record = res.get_record()
info = res.get_info()
# NOTE: store metadata for later connection
self.appid = info.game_id

View File

@ -197,8 +197,8 @@ class PreConnectionAssistant(Gtk.ScrolledWindow):
self.error_placeholder,
self.warning_placeholder,
)
for widget in widgets:
widget.set_visible(True)
for child in widgets:
child.set_visible(True)
self.raise_window.set_visible(False)
# TODO: enable button if wmctrl or xdotool is available
@ -250,7 +250,6 @@ class PreConnectionAssistant(Gtk.ScrolledWindow):
if len(prereqs.mods) > 0 and prereqs.game_mode:
errors.append("Use Desktop Mode to download mods on Steam Deck")
print(prereqs.steam_proc)
if prereqs.steam_proc.is_running is False:
client = prereqs.steam_proc.name
errors.append(