mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 06:32:53 +01:00
fix: separate id/ip methods
This commit is contained in:
1 parent
f424b019ad
commit
f86e37dbe1
5 files changed
+43
-29
No files matched your search
@@ -59,20 +59,15 @@ class ContextMenuManager:
|
||||
self.controller.set_fav()
|
||||
|
||||
# THREADED
|
||||
case ContextMenu.ADD_SERVER:
|
||||
record = self.treeview.get_record_string()
|
||||
ServerModelManager(self.controller, self.treeview).add_by_ip(record)
|
||||
# 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_by_id_or_ip(record, key)
|
||||
case ContextMenu.ADD_SERVER:
|
||||
record = self.treeview.get_record_string()
|
||||
ServerModelManager(self.controller, self.treeview).add_by_id_or_ip(
|
||||
record
|
||||
)
|
||||
# add to saved servers model verbatim and sort in place
|
||||
# update tab with !
|
||||
# update config file with IP
|
||||
pass
|
||||
ConnectionManager(self.controller).connect_ip(record, key)
|
||||
case ContextMenu.REFRESH_PLAYERS:
|
||||
# get record
|
||||
# call a2s on thread
|
||||
|
||||
Reference in new issue
Block a user