Fixed project not opening with missing background

This is the quick way to patch this. I'd recommend changing the findFirstFile function in functions/__init__.py for a more permanent solution, but this should suffice for now.
This commit is contained in:
Robert Barlow 2021-04-04 13:48:54 -04:00 committed by GitHub
parent 4eadf5310c
commit a266b1bfff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,6 +27,8 @@ class corkView(QListView, dndView, outlineBasics):
def updateBackground(self):
if settings.corkBackground["image"] != "":
img = findBackground(settings.corkBackground["image"])
if img == None:
img = ""
else:
# No background image
img = ""