From 8f3238e4de8a11f3e655aee2a0eb9a600bfb2170 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 8 Aug 2025 17:59:10 +0900 Subject: [PATCH] feat: prompt on locked servers --- helpers/ui.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/helpers/ui.py b/helpers/ui.py index cf03aa0..47de1c6 100644 --- a/helpers/ui.py +++ b/helpers/ui.py @@ -2677,6 +2677,17 @@ class TreeView(Gtk.TreeView): case WindowContext.TABLE_MODS | WindowContext.TABLE_LOG: self.update_quad_column(cr) case WindowContext.TABLE_SERVER | WindowContext.TABLE_API: + record = self.get_record_dict() + if record is None: + return + if Servers.is_passworded(record["ip"], int(record["qport"])): + msg = ( + "This server is password-protected and you will be " + "prompted when connecting. Do you want to proceed?" + ) + res = spawn_dialog(msg, Popup.CONFIRM) + if res is True: + return self._attempt_connection() case _: # any other non-server option from the main menu process_tree_option(output)