From ea221bae93adde0f12980e47f3ea43bad00be3e9 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 17 Dec 2025 17:48:37 +0100 Subject: [PATCH] update: revert back version to 2.0.0 --- gui/__main__.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gui/__main__.py b/gui/__main__.py index a643cb6..ff4a9ec 100755 --- a/gui/__main__.py +++ b/gui/__main__.py @@ -1556,6 +1556,28 @@ class MenuPage(Page): self.update_scroll_widget_size() def refresh_menu_buttons(self): + profiles = ProfileController.get_all() + self.button_states.clear() + self.connection_manager._connected_profiles.clear() + self.IsSystem = 0 + + for profile_id, profile in profiles.items(): + if ProfileController.is_enabled(profile): + self.connection_manager.add_connected_profile(profile_id) + if isinstance(profile, SessionProfile): + if profile.connection and profile.connection.code == 'tor': + self.button_states[profile_id] = self.connected_tor_profile + else: + self.button_states[profile_id] = self.connected_profile + elif isinstance(profile, SystemProfile): + self.button_states[profile_id] = self.system_wide_connected_profile + self.IsSystem += 1 + + if self.IsSystem > 0: + self.update_status.update_image(appearance_value='background_connected') + else: + self.update_status.update_image() + for widget in self.scroll_widget.findChildren(QLabel): widget.setParent(None)