Add a CLI flag to test early crash

CURA-4895
This commit is contained in:
Lipu Fei 2018-01-30 16:04:11 +01:00 committed by Diego Prado Gesto
parent 6bbc18d51e
commit aefe24222f
2 changed files with 10 additions and 0 deletions

View file

@ -223,6 +223,10 @@ class CuraApplication(QtApplication):
tray_icon_name = "cura-icon-32.png",
**kwargs)
# FOR TESTING ONLY
if kwargs["parsed_command_line"].get("trigger_early_crash", False):
1/0
self.default_theme = "cura-light"
self.setWindowIcon(QIcon(Resources.getPath(Resources.Images, "cura-icon.png")))