Skip to content

Commit

Permalink
Fix bug in orphans orphans window
Browse files Browse the repository at this point in the history
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
  • Loading branch information
heliguy4599 committed Sep 25, 2023
1 parent 7907455 commit efc20a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/orphans_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def selectionHandler(self, widget, dir_name):

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):
Expand Down Expand Up @@ -159,6 +162,7 @@ def onResponse(dialog, response_id, _function):

# 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 = []
Expand Down

0 comments on commit efc20a1

Please sign in to comment.