Skip to content

Commit

Permalink
restore to Normal action at the end of transaction (safer view)
Browse files Browse the repository at this point in the history
  • Loading branch information
anaselli committed Jan 6, 2025
1 parent 1fe0d63 commit 0739187
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dnfdragora/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,8 +901,7 @@ def _fillPackageList(self, groupName=None, filter="all") :
else:
groups_pkg = self.backend.get_groups_from_package(pkg)
insert_items = groupName in groups_pkg
# if looking for downgrade we must add only the available that are instaled
# TODO check if they are also updates
# if looking for downgrade we must add only the available that are installed and not upgrades
if self.packageActionValue == const.Actions.DOWNGRADE:
if pkg.name not in installed_pkgs:
insert_items = False
Expand Down Expand Up @@ -1815,6 +1814,9 @@ def _OnTransactionEvent(self, event, data):
# Clean up download and transaction data
self.__resetDownloads()

#restore actions to Normal
self._updateActionView(const.Actions.NORMAL)

# TODO change UI and manage this better afer a transaction report
self.backend.reloadDaemon()
self.backend.clear_cache(also_groups=True)
Expand Down

0 comments on commit 0739187

Please sign in to comment.