[view] fix: some package icons would not appear if there is no URL associated with them

This commit is contained in:
Vinicius Moreira
2022-03-04 15:21:00 -03:00
parent e737df8e8c
commit ec0d0d6853
2 changed files with 3 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- General
- not accepting blank root passwords [#235](https://github.com/vinifmor/bauh/issues/235)
- UI
- some package icons would not appear if there is no URL associated with them
## [0.9.28] 2022-02-14

View File

@@ -408,7 +408,7 @@ class PackagesTable(QTableWidget):
if icon.isNull():
icon = QIcon(pkg.model.get_default_icon_path())
else:
elif pkg.model.icon_url:
self.icon_cache.add_non_existing(pkg.model.icon_url, {'icon': icon, 'bytes': None})
except: