[view] fix: upgrade summary (not displaying the icon type for some applications)

This commit is contained in:
Vinicius Moreira
2021-11-08 17:25:37 -03:00
parent 6678cb282a
commit e539eea6f6
2 changed files with 6 additions and 1 deletions

View File

@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [0.9.21] 2021
### Fixes
- UI
- upgrade summary: not displaying the icon type for some applications
## [0.9.20] 2021-11-05
### Improvements
- AppImage:

View File

@@ -216,7 +216,7 @@ class UpgradeSelected(AsyncAction):
if not icon_path:
icon_path = req.pkg.get_type_icon_path()
elif not os.path.isfile(icon_path) and QIcon.fromTheme(icon_path).isNull():
elif not os.path.isfile(icon_path) or QIcon.fromTheme(icon_path).isNull():
icon_path = req.pkg.get_type_icon_path()
else: