chore: connection logic placeholders

This commit is contained in:
aclist 2026-05-02 00:00:43 +09:00
parent 676f2ac12f
commit 5005f6923e
3 changed files with 4 additions and 2 deletions

View File

@ -429,6 +429,7 @@ def validate_ip(addr: str) -> Record:
return record
# TODO: do not return empty list in event of failure
def get_rules(record: Record) -> list["DayzMod"]:
ip = record.ip
qport = record.qport

View File

@ -177,6 +177,7 @@ class Controller(GObject.GObject):
self.open_page(NotebookPage.DEVELOPERS)
def open_page(self, page: NotebookPage) -> None:
print(page)
self.mediator.grid.notebook.set_page_by_enum(page)
def open_page_by_button(self, button: "ContextualButton") -> None:

View File

@ -55,10 +55,11 @@ class ConnectionManager:
self.thread_man.set_cleanup_func(
StoredFunc(self._server_timeout), destroy_first=True
)
rules = Servers.get_rules(record)
# TODO: add to history if successful
print("UNIMPLEMENTED: get rules")
print(res)
print(rules)
@call_on_thread(dialog.querying)
def query_details(self, record: Servers.Record) -> None:
@ -74,7 +75,6 @@ class ConnectionManager:
@call_on_thread(dialog.querying)
def query_modlist(self, record: Servers.Record) -> None:
mods = Servers.get_rules(record)
steam_path = self.controller.query_config(Preferences.DEFAULT)
local = get_local_mod_ids(steam_path)