Browse Source

fix the fix

master
Nils 3 years ago
parent
commit
12e2d87a2f
  1. 3
      qtgui/mainwindow.py

3
qtgui/mainwindow.py

@ -261,10 +261,11 @@ class MainWindow(QtWidgets.QMainWindow):
for entry in programs:
exe = entry["argodejoExec"]
icon = None
if "argodejoIconPath" in entry and entry["argodejoIconPath"]: #not null
icon = QtGui.QIcon(entry["argodejoIconPath"])
if icon.isNull(): #the DB cache could be wrong. Deinstalled a program and not updated the DB.
if not icon or icon.isNull(): #the DB cache could be wrong. Deinstalled a program and not updated the DB.
if "icon" in entry:
icon = QtGui.QIcon.fromTheme(entry["icon"])
else:

Loading…
Cancel
Save