From efc20a1277f7500cf3237e7b399edf4ae4022db8 Mon Sep 17 00:00:00 2001 From: heliguy4599 Date: Mon, 25 Sep 2023 04:07:09 -0400 Subject: [PATCH] Fix bug in orphans orphans window Fix bug where if a row was selected, and then the select all butt was set to non active, the install and trash buttons would still remain clickable --- src/orphans_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/orphans_window.py b/src/orphans_window.py index 39dec8e..8c47bc7 100644 --- a/src/orphans_window.py +++ b/src/orphans_window.py @@ -56,6 +56,9 @@ class OrphansWindow(Adw.Window): def selectAllHandler(self, button): self.should_select_all = button.get_active() + if not button.get_active(): + self.install_button.set_sensitive(False) + self.trash_button.set_sensitive(False) self.generateList() def installCallback(self, *_args): @@ -159,6 +162,7 @@ class OrphansWindow(Adw.Window): # Create the list of folders in the window def generateList(self): + self.host_flatpaks = self.my_utils.getHostFlatpaks() self.list_of_data.remove_all() self.selected_dirs = []