mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 11:55:53 +08:00
Prevent crash if icon was not found
Fixes CURA-A2
This commit is contained in:
parent
384f92a516
commit
580bd13a76
@ -454,7 +454,10 @@ class CuraApplication(QtApplication):
|
|||||||
super().startSplashWindowPhase()
|
super().startSplashWindowPhase()
|
||||||
|
|
||||||
if not self.getIsHeadLess():
|
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([
|
self.setRequiredPlugins([
|
||||||
# Misc.:
|
# Misc.:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user