mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Splash closed on early crash
This commit is contained in:
parent
383319d631
commit
e64fb9c762
1 changed files with 2 additions and 1 deletions
|
@ -32,7 +32,7 @@ if not known_args["debug"]:
|
|||
return os.path.expanduser("~/.local/share/cura")
|
||||
elif Platform.isOSX():
|
||||
return os.path.expanduser("~/Library/Logs/cura")
|
||||
|
||||
|
||||
if hasattr(sys, "frozen"):
|
||||
dirpath = get_cura_dir_path()
|
||||
os.makedirs(dirpath, exist_ok = True)
|
||||
|
@ -110,6 +110,7 @@ def exceptHook(hook_type, value, traceback):
|
|||
application = QApplication(sys.argv)
|
||||
application.removePostedEvents(None)
|
||||
_crash_handler = CrashHandler(hook_type, value, traceback, has_started)
|
||||
CuraApplication.getInstance().closeSplash()
|
||||
_crash_handler.early_crash_dialog.show()
|
||||
sys.exit(application.exec_())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue