mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-11 16:00:47 -07:00
Fix crash on open project from term or by file.
Opening a .3mf file or other project would cause a crash if the preference for always opening as a project (as opposed to importing models or 'always ask') was set. Traced back to a typo. CURA-7987
This commit is contained in:
parent
e681a6d32d
commit
9197a1ca51
2 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2020 Ultimaker B.V.
|
# Copyright (c) 2021 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
@ -1762,7 +1762,7 @@ class CuraApplication(QtApplication):
|
||||||
if is_project_file and project_mode == "open_as_project":
|
if is_project_file and project_mode == "open_as_project":
|
||||||
# open as project immediately without presenting a dialog
|
# open as project immediately without presenting a dialog
|
||||||
workspace_handler = self.getWorkspaceFileHandler()
|
workspace_handler = self.getWorkspaceFileHandler()
|
||||||
workspace_handler.readLocalFile(file, add_to_recent_files = add_to_recent_files)
|
workspace_handler.readLocalFile(file, add_to_recent_files_hint = add_to_recent_files)
|
||||||
return
|
return
|
||||||
|
|
||||||
if is_project_file and project_mode == "always_ask":
|
if is_project_file and project_mode == "always_ask":
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2018 Ultimaker B.V.
|
# Copyright (c) 2021 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
import numpy
|
import numpy
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue