mirror of
https://github.com/aclist/dztui.git
synced 2026-08-28 10:47:15 +02:00
chore: clear typehinting errors
This commit is contained in:
parent
b51b858e05
commit
6e29a716a5
@ -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
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user