mirror of
https://github.com/aclist/dztui.git
synced 2026-08-28 10:47:15 +02:00
chore: connection logic placeholders
This commit is contained in:
parent
676f2ac12f
commit
5005f6923e
@ -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
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user