update: fixed endpoint verification bug

This commit is contained in:
Your Name 2025-12-12 14:56:45 +01:00
parent c2241ff273
commit 626cd34940

View file

@ -2232,7 +2232,6 @@ class MenuPage(Page):
profile_data['ignore_profile_state_conflict'] = True profile_data['ignore_profile_state_conflict'] = True
self.enabling_profile(profile_data) self.enabling_profile(profile_data)
elif action == "sync": elif action == "sync":
self._pending_endpoint_verification_ignore = True
self.update_status.update_status("Syncing...") self.update_status.update_status("Syncing...")
self.worker_thread = WorkerThread('SYNC') self.worker_thread = WorkerThread('SYNC')
self.worker_thread.finished.connect(lambda: self.handle_sync_after_verification(profile_id)) self.worker_thread.finished.connect(lambda: self.handle_sync_after_verification(profile_id))
@ -2244,7 +2243,7 @@ class MenuPage(Page):
self.popup.close() self.popup.close()
def handle_sync_after_verification(self, profile_id): def handle_sync_after_verification(self, profile_id):
profile_data = {'id': profile_id, 'ignore_endpoint_verification': True} profile_data = {'id': profile_id}
if hasattr(self, '_pending_profile_state_conflict_ignore') and self._pending_profile_state_conflict_ignore: if hasattr(self, '_pending_profile_state_conflict_ignore') and self._pending_profile_state_conflict_ignore:
profile_data['ignore_profile_state_conflict'] = True profile_data['ignore_profile_state_conflict'] = True
self.enabling_profile(profile_data) self.enabling_profile(profile_data)
@ -5357,8 +5356,8 @@ class Settings(Page):
("Create/Edit", self.show_registrations_page), ("Create/Edit", self.show_registrations_page),
("Verification", self.show_verification_page), ("Verification", self.show_verification_page),
("Systemwide", self.show_systemwide_page), ("Systemwide", self.show_systemwide_page),
("Delete Profile", self.show_delete_page),
("Bwrap Permission", self.show_bwrap_page), ("Bwrap Permission", self.show_bwrap_page),
("Delete Profile", self.show_delete_page),
("Error Logs", self.show_logs_page), ("Error Logs", self.show_logs_page),
("Debug Help", self.show_debug_page) ("Debug Help", self.show_debug_page)
] ]
@ -6963,7 +6962,7 @@ class Settings(Page):
description = QLabel("Control whether HydraVeil configures a sudo policy so system-wide WireGuard profiles can be started without entering your sudo password.") description = QLabel("Control whether HydraVeil configures a sudo policy so system-wide WireGuard profiles can be started without entering your sudo password.")
description.setWordWrap(True) description.setWordWrap(True)
description.setStyleSheet(f"color: white; font-size: 16px; font-family: Arial;") description.setStyleSheet(f"color: white; font-size: 14px; {self.font_style}")
layout.addWidget(description) layout.addWidget(description)
status_layout = QHBoxLayout() status_layout = QHBoxLayout()
@ -8115,9 +8114,9 @@ class SystemwidePromptPage(Page):
self.title.setGeometry(20, 50, 760, 40) self.title.setGeometry(20, 50, 760, 40)
self.title.setText("Enable \"no sudo\" systemwide") self.title.setText("Enable \"no sudo\" systemwide")
description = QLabel(self) description = QLabel(self)
description.setGeometry(80, 100, 640, 160) description.setGeometry(80, 100, 640, 120)
description.setWordWrap(True) description.setWordWrap(True)
description.setStyleSheet("font-size: 17px; color: cyan;") description.setStyleSheet("font-size: 14px; color: cyan;")
description.setText("If you're using Systemwide profiles, you may wish to enable them without having to enter the sudo password each time for convenience. This requires the sudo password to setup profiles and disable them (for security), but not to turn it on each time. You can choose to set this up now or later in the options menu.") description.setText("If you're using Systemwide profiles, you may wish to enable them without having to enter the sudo password each time for convenience. This requires the sudo password to setup profiles and disable them (for security), but not to turn it on each time. You can choose to set this up now or later in the options menu.")
icon_label = QLabel(self) icon_label = QLabel(self)