Don't create system tray icon in headless mode

This commit is contained in:
Ghostkeeper 2018-12-20 21:56:27 +01:00
parent 10c9678edc
commit e51b5993d3
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -434,7 +434,8 @@ class CuraApplication(QtApplication):
def startSplashWindowPhase(self) -> None:
super().startSplashWindowPhase()
self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png")))
if not self.getIsHeadLess():
self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png")))
self.setRequiredPlugins([
# Misc.: