From 0739187086c8b2cf6b434b741cd60ac99072e74c Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Mon, 6 Jan 2025 12:00:12 +0100 Subject: [PATCH] restore to Normal action at the end of transaction (safer view) --- dnfdragora/ui.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dnfdragora/ui.py b/dnfdragora/ui.py index 5467fdf..408791d 100644 --- a/dnfdragora/ui.py +++ b/dnfdragora/ui.py @@ -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 @@ -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)