mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 06:24:15 +02:00
fix: setting null icons
This commit is contained in:
@@ -179,9 +179,13 @@ class AppsTable(QTableWidget):
|
|||||||
icon_was_cached = True
|
icon_was_cached = True
|
||||||
|
|
||||||
if not icon_data:
|
if not icon_data:
|
||||||
|
icon_bytes = http_response.readAll()
|
||||||
|
|
||||||
|
if not icon_bytes:
|
||||||
|
return
|
||||||
|
|
||||||
icon_was_cached = False
|
icon_was_cached = False
|
||||||
pixmap = QPixmap()
|
pixmap = QPixmap()
|
||||||
icon_bytes = http_response.readAll()
|
|
||||||
pixmap.loadFromData(icon_bytes)
|
pixmap.loadFromData(icon_bytes)
|
||||||
icon = QIcon(pixmap)
|
icon = QIcon(pixmap)
|
||||||
icon_data = {'icon': icon, 'bytes': icon_bytes}
|
icon_data = {'icon': icon, 'bytes': icon_bytes}
|
||||||
|
|||||||
Reference in New Issue
Block a user