mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
[view] fix: some package icons would not appear if there is no URL associated with them
This commit is contained in:
@@ -33,6 +33,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
- General
|
- General
|
||||||
- not accepting blank root passwords [#235](https://github.com/vinifmor/bauh/issues/235)
|
- 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
|
## [0.9.28] 2022-02-14
|
||||||
|
|
||||||
|
|||||||
@@ -408,7 +408,7 @@ class PackagesTable(QTableWidget):
|
|||||||
|
|
||||||
if icon.isNull():
|
if icon.isNull():
|
||||||
icon = QIcon(pkg.model.get_default_icon_path())
|
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})
|
self.icon_cache.add_non_existing(pkg.model.icon_url, {'icon': icon, 'bytes': None})
|
||||||
|
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user