mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 14:42:54 +01:00
chore: uncomment connection logic
This commit is contained in:
1 parent
1ea30270ce
commit
67bae3c3e0
1 file changed
+19
-19
@@ -265,26 +265,26 @@ class ConnectionManager:
|
|||||||
addr = f"{self.record.ip}:{self.record.gameport}"
|
addr = f"{self.record.ip}:{self.record.gameport}"
|
||||||
playername = self.controller.query_config(Preferences.NAME)
|
playername = self.controller.query_config(Preferences.NAME)
|
||||||
client = self.controller.query_config(Preferences.CLIENT)
|
client = self.controller.query_config(Preferences.CLIENT)
|
||||||
#if menu_only:
|
if menu_only:
|
||||||
# rc = load_to_menu(client, addr, self.appid, playername, self.remote_mod_ids)
|
rc = load_to_menu(client, addr, self.appid, playername, self.remote_mod_ids)
|
||||||
#else:
|
else:
|
||||||
# rc = connect(client, addr, self.appid, playername, self.remote_mod_ids)
|
rc = connect(client, addr, self.appid, playername, self.remote_mod_ids)
|
||||||
#if rc != 0:
|
if rc != 0:
|
||||||
# # TODO: log/pop the error
|
# TODO: log/pop the error
|
||||||
# func = StoredFunc(self.controller.update_status)
|
func = StoredFunc(self.controller.update_status)
|
||||||
# self.thread_man.set_cleanup_func(func)
|
self.thread_man.set_cleanup_func(func)
|
||||||
# return
|
return
|
||||||
|
|
||||||
#self.thread_man.show_cancel(False)
|
self.thread_man.show_cancel(False)
|
||||||
#self.thread_man.update_dialog(waiting_for_launch)
|
self.thread_man.update_dialog(waiting_for_launch)
|
||||||
#while True:
|
while True:
|
||||||
# # TODO: check cancel event
|
# TODO: check cancel event
|
||||||
# if self.controller.get_exit_event().is_set():
|
if self.controller.get_exit_event().is_set():
|
||||||
# # TODO: some facility to also close spawned steam process
|
# TODO: some facility to also close spawned steam process
|
||||||
# return
|
return
|
||||||
# if is_dayz_running():
|
if is_dayz_running():
|
||||||
# break
|
break
|
||||||
# time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
func = StoredFunc(self._add_to_history_and_return)
|
func = StoredFunc(self._add_to_history_and_return)
|
||||||
self.thread_man.set_cleanup_func(func)
|
self.thread_man.set_cleanup_func(func)
|
||||||
|
|||||||
Reference in new issue
Block a user