mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 20:14:14 +02:00
fix: trying to load null disk icon path
This commit is contained in:
@@ -90,3 +90,4 @@ back=back
|
|||||||
show=show
|
show=show
|
||||||
ask.continue=Continue ?
|
ask.continue=Continue ?
|
||||||
cancel=cancel
|
cancel=cancel
|
||||||
|
status.caching_data=Caching {} data to disk
|
||||||
|
|||||||
@@ -92,3 +92,4 @@ back=volver
|
|||||||
show=mostrar
|
show=mostrar
|
||||||
ask.continue=¿Continuar ?
|
ask.continue=¿Continuar ?
|
||||||
cancel=cancelar
|
cancel=cancelar
|
||||||
|
status.caching_data=Cacheando los datos de {} para el disco
|
||||||
@@ -92,3 +92,4 @@ back=voltar
|
|||||||
show=mostrar
|
show=mostrar
|
||||||
ask.continue=Continuar ?
|
ask.continue=Continuar ?
|
||||||
cancel=cancelar
|
cancel=cancelar
|
||||||
|
status.caching_data=Cacheando dados de {} para o disco
|
||||||
@@ -328,7 +328,7 @@ class AppsTable(QTableWidget):
|
|||||||
col.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled)
|
col.setFlags(Qt.ItemIsSelectable | Qt.ItemIsEnabled)
|
||||||
col.setToolTip(self.window.locale_keys['app.name'].lower())
|
col.setToolTip(self.window.locale_keys['app.name'].lower())
|
||||||
|
|
||||||
if self.disk_cache and app_v.model.supports_disk_cache() and os.path.exists(app_v.model.get_disk_icon_path()):
|
if self.disk_cache and app_v.model.supports_disk_cache() and app_v.model.get_disk_icon_path() and os.path.exists(app_v.model.get_disk_icon_path()):
|
||||||
with open(app_v.model.get_disk_icon_path(), 'rb') as f:
|
with open(app_v.model.get_disk_icon_path(), 'rb') as f:
|
||||||
icon_bytes = f.read()
|
icon_bytes = f.read()
|
||||||
pixmap = QPixmap()
|
pixmap = QPixmap()
|
||||||
|
|||||||
Reference in New Issue
Block a user