fix: do not pass BM key during ip method

This commit is contained in:
aclist 2026-02-27 22:21:08 +09:00
parent 374f7d1130
commit 1b1cb33a6e
3 changed files with 2 additions and 4 deletions

View File

@ -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?

View File

@ -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

View File

@ -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)