From e058b79035d380e1f0afe082dac03cb383f2ec4e Mon Sep 17 00:00:00 2001 From: GloriousEggroll Date: Sat, 22 Mar 2025 17:55:46 -0600 Subject: [PATCH] remove active status from all categories in all groups before we select our clicked category --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 6658b86..c58da2b 100755 --- a/main.py +++ b/main.py @@ -245,9 +245,10 @@ class MainWindow(Gtk.Window): self.main_box.pack_start(scrolled_window, False, False, 0) def on_category_clicked(self, category, group): - # Remove active state from all categories in the same group - for widget in self.category_widgets[group]: - widget.get_style_context().remove_class("dark-category-button-active") + # Remove active state from all widgets in all groups + for group_name in self.category_widgets: + for widget in self.category_widgets[group_name]: + widget.get_style_context().remove_class("dark-category-button-active") # Add active state to the clicked category display_title = self.category_groups[group][category]