mirror of
https://github.com/aclist/dztui.git
synced 2026-10-31 15:12:48 +01:00
chore: connection logic placeholders
This commit is contained in:
1 parent
676f2ac12f
commit
5005f6923e
3 files changed
+4
-2
No files matched your search
@@ -429,6 +429,7 @@ def validate_ip(addr: str) -> Record:
|
|||||||
return record
|
return record
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: do not return empty list in event of failure
|
||||||
def get_rules(record: Record) -> list["DayzMod"]:
|
def get_rules(record: Record) -> list["DayzMod"]:
|
||||||
ip = record.ip
|
ip = record.ip
|
||||||
qport = record.qport
|
qport = record.qport
|
||||||
|
|||||||
@@ -177,6 +177,7 @@ class Controller(GObject.GObject):
|
|||||||
self.open_page(NotebookPage.DEVELOPERS)
|
self.open_page(NotebookPage.DEVELOPERS)
|
||||||
|
|
||||||
def open_page(self, page: NotebookPage) -> None:
|
def open_page(self, page: NotebookPage) -> None:
|
||||||
|
print(page)
|
||||||
self.mediator.grid.notebook.set_page_by_enum(page)
|
self.mediator.grid.notebook.set_page_by_enum(page)
|
||||||
|
|
||||||
def open_page_by_button(self, button: "ContextualButton") -> None:
|
def open_page_by_button(self, button: "ContextualButton") -> None:
|
||||||
|
|||||||
@@ -55,10 +55,11 @@ class ConnectionManager:
|
|||||||
self.thread_man.set_cleanup_func(
|
self.thread_man.set_cleanup_func(
|
||||||
StoredFunc(self._server_timeout), destroy_first=True
|
StoredFunc(self._server_timeout), destroy_first=True
|
||||||
)
|
)
|
||||||
|
rules = Servers.get_rules(record)
|
||||||
|
|
||||||
# TODO: add to history if successful
|
# TODO: add to history if successful
|
||||||
print("UNIMPLEMENTED: get rules")
|
|
||||||
print(res)
|
print(res)
|
||||||
|
print(rules)
|
||||||
|
|
||||||
@call_on_thread(dialog.querying)
|
@call_on_thread(dialog.querying)
|
||||||
def query_details(self, record: Servers.Record) -> None:
|
def query_details(self, record: Servers.Record) -> None:
|
||||||
@@ -74,7 +75,6 @@ class ConnectionManager:
|
|||||||
|
|
||||||
@call_on_thread(dialog.querying)
|
@call_on_thread(dialog.querying)
|
||||||
def query_modlist(self, record: Servers.Record) -> None:
|
def query_modlist(self, record: Servers.Record) -> None:
|
||||||
|
|
||||||
mods = Servers.get_rules(record)
|
mods = Servers.get_rules(record)
|
||||||
steam_path = self.controller.query_config(Preferences.DEFAULT)
|
steam_path = self.controller.query_config(Preferences.DEFAULT)
|
||||||
local = get_local_mod_ids(steam_path)
|
local = get_local_mod_ids(steam_path)
|
||||||
|
|||||||
Reference in new issue
Block a user