mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Prevent crash if icon was not found
Fixes CURA-A2
This commit is contained in:
parent
384f92a516
commit
580bd13a76
1 changed files with 4 additions and 1 deletions
|
@ -454,7 +454,10 @@ class CuraApplication(QtApplication):
|
|||
super().startSplashWindowPhase()
|
||||
|
||||
if not self.getIsHeadLess():
|
||||
self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png")))
|
||||
try:
|
||||
self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png")))
|
||||
except FileNotFoundError:
|
||||
Logger.log("w", "Unable to find the window icon.")
|
||||
|
||||
self.setRequiredPlugins([
|
||||
# Misc.:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue