mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
fix: do not pass BM key during ip method
This commit is contained in:
1 parent
374f7d1130
commit
1b1cb33a6e
3 files changed
+2
-4
No files matched your search
@@ -27,6 +27,7 @@ class ConnectionManager:
|
|||||||
if res is None:
|
if res is None:
|
||||||
self.thread_man.set_cleanup_func(StoredFunc(self._connection_failure))
|
self.thread_man.set_cleanup_func(StoredFunc(self._connection_failure))
|
||||||
# TODO: add to history if successful
|
# TODO: add to history if successful
|
||||||
|
print(res)
|
||||||
|
|
||||||
def _connection_failure(self) -> None:
|
def _connection_failure(self) -> None:
|
||||||
# TODO: more explicit warning message, not necessarily API failure?
|
# TODO: more explicit warning message, not necessarily API failure?
|
||||||
|
|||||||
@@ -65,9 +65,7 @@ class ContextMenuManager:
|
|||||||
# TODO: update tab with !
|
# TODO: update tab with !
|
||||||
case ContextMenu.CONNECT:
|
case ContextMenu.CONNECT:
|
||||||
record = self.treeview.get_record_string()
|
record = self.treeview.get_record_string()
|
||||||
# FIXME: context menu connections do not require BM key
|
ConnectionManager(self.controller).connect_by_ip(record)
|
||||||
key = self.controller.get_config_man().lookup(Preferences.BM)
|
|
||||||
ConnectionManager(self.controller).connect_ip(record, key)
|
|
||||||
case ContextMenu.REFRESH_PLAYERS:
|
case ContextMenu.REFRESH_PLAYERS:
|
||||||
# get record
|
# get record
|
||||||
# call a2s on thread
|
# call a2s on thread
|
||||||
|
|||||||
@@ -189,7 +189,6 @@ class ServerModelManager:
|
|||||||
|
|
||||||
@call_on_thread(dialog.querying)
|
@call_on_thread(dialog.querying)
|
||||||
def add_by_id(self, addr: str) -> None:
|
def add_by_id(self, addr: str) -> None:
|
||||||
# KEY
|
|
||||||
config_man = self.controller.get_config_man()
|
config_man = self.controller.get_config_man()
|
||||||
key = config_man.lookup(Preferences.BM)
|
key = config_man.lookup(Preferences.BM)
|
||||||
res = Servers.query_by_id(addr, key)
|
res = Servers.query_by_id(addr, key)
|
||||||
|
|||||||
Reference in new issue
Block a user