From 7e95f378da0132c20a693de3b4772e9e190d2adb Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 30 Dec 2025 23:33:13 +0100 Subject: [PATCH] update: fixed non SP locations connected page --- gui/__main__.py | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/gui/__main__.py b/gui/__main__.py index 2e7ca89..f98585d 100755 --- a/gui/__main__.py +++ b/gui/__main__.py @@ -2025,7 +2025,14 @@ class MenuPage(Page): text_color = "white" operator_name = profile_obj.location.operator.name if profile_obj.location and profile_obj.location.operator else "" - if operator_name != 'Simplified Privacy': + if protocol.lower() == "wireguard" and is_profile_enabled and profile_obj and profile_obj.connection and profile_obj.connection.code == 'wireguard': + verification_widget = self.create_verification_widget( + profile_obj) + self.additional_labels.append(verification_widget) + show_verification_widget = True + label_principal = None + + elif operator_name != 'Simplified Privacy': if profile_obj.is_session_profile(): text_color = "black" label_background = QLabel(self) @@ -2069,22 +2076,16 @@ class MenuPage(Page): self.additional_labels.append(info_txt) elif protocol.lower() in ["wireguard", "open", "lokinet", "residential", "hidetor"]: + label_principal = QLabel(self) + label_principal.setGeometry(0, 90, 400, 300) + pixmap = QPixmap(os.path.join( + self.btn_path, f"{protocol}_{location}.png")) + label_principal.setPixmap(pixmap) + label_principal.setScaledContents(True) + label_principal.show() + self.additional_labels.append(label_principal) - if protocol.lower() == "wireguard" and is_profile_enabled and profile_obj and profile_obj.connection and profile_obj.connection.code == 'wireguard': - verification_widget = self.create_verification_widget( - profile_obj) - self.additional_labels.append(verification_widget) - show_verification_widget = True - label_principal = None - else: - label_principal = QLabel(self) - label_principal.setGeometry(0, 90, 400, 300) - pixmap = QPixmap(os.path.join( - self.btn_path, f"{protocol}_{location}.png")) - label_principal.setPixmap(pixmap) - label_principal.setScaledContents(True) - label_principal.show() - self.additional_labels.append(label_principal) + if protocol.lower() in ["wireguard", "open", "lokinet", "residential", "hidetor"]: if protocol.lower() == "wireguard" and ConfigurationController.get_endpoint_verification_enabled(): if is_profile_enabled and profile_obj and profile_obj.connection and profile_obj.connection.code == 'wireguard':