[ui] fix -> conflict resolution: still displaying that updates are ignored for a given package after its uninstallation

This commit is contained in:
Vinicius Moreira
2021-03-03 10:52:51 -03:00
parent 7236a40c06
commit 4db47b2594
2 changed files with 3 additions and 2 deletions

View File

@@ -373,11 +373,11 @@ class PackagesTable(QTableWidget):
else:
tooltip = self.i18n['version.unknown']
if pkg.model.update and not pkg.model.is_update_ignored():
if pkg.model.installed and pkg.model.update and not pkg.model.is_update_ignored():
label_version.setProperty('update', 'true')
tooltip = pkg.model.get_update_tip() or self.i18n['version.installed_outdated']
if pkg.model.is_update_ignored():
if pkg.model.installed and pkg.model.is_update_ignored():
label_version.setProperty('ignored', 'true')
tooltip = self.i18n['version.updates_ignored']