update: fixed non SP locations connected page
This commit is contained in:
parent
197a9cfea1
commit
7e95f378da
1 changed files with 17 additions and 16 deletions
|
|
@ -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,14 +2076,6 @@ class MenuPage(Page):
|
|||
self.additional_labels.append(info_txt)
|
||||
|
||||
elif protocol.lower() in ["wireguard", "open", "lokinet", "residential", "hidetor"]:
|
||||
|
||||
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(
|
||||
|
|
@ -2086,6 +2085,8 @@ class MenuPage(Page):
|
|||
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':
|
||||
verified_icon = QLabel(self)
|
||||
|
|
|
|||
Loading…
Reference in a new issue