mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-10 00:44:16 +02:00
fix: setting null icons
This commit is contained in:
@@ -7,6 +7,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
## [0.4.3]
|
## [0.4.3]
|
||||||
### Improvements
|
### Improvements
|
||||||
- new environment variable / argument to enable / disable the tray icon and update-check daemon: FPAKMAN_TRAY (--tray)
|
- new environment variable / argument to enable / disable the tray icon and update-check daemon: FPAKMAN_TRAY (--tray)
|
||||||
|
### Fixes:
|
||||||
|
- replacing default app icons by null icons
|
||||||
|
|
||||||
## [0.4.2] - 2019-07-28
|
## [0.4.2] - 2019-07-28
|
||||||
### Improvements
|
### Improvements
|
||||||
|
|||||||
@@ -179,9 +179,14 @@ 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