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