mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
CURA-5160 Skip empty quality when load project file
This commit is contained in:
parent
2ee42dda33
commit
3fb14691a9
2 changed files with 4 additions and 2 deletions
|
@ -1698,7 +1698,7 @@ class CuraApplication(QtApplication):
|
||||||
result = workspace_reader.preRead(file_path, show_dialog=False)
|
result = workspace_reader.preRead(file_path, show_dialog=False)
|
||||||
return result == WorkspaceReader.PreReadResult.accepted
|
return result == WorkspaceReader.PreReadResult.accepted
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Logger.logException("e", "Could not check file %s: %s", file_url)
|
Logger.logException("e", "Could not check file %s", file_url)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _onContextMenuRequested(self, x: float, y: float) -> None:
|
def _onContextMenuRequested(self, x: float, y: float) -> None:
|
||||||
|
|
|
@ -377,7 +377,9 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
parser = ConfigParser(interpolation = None)
|
parser = ConfigParser(interpolation = None)
|
||||||
parser.read_string(serialized)
|
parser.read_string(serialized)
|
||||||
quality_container_id = parser["containers"][str(_ContainerIndexes.Quality)]
|
quality_container_id = parser["containers"][str(_ContainerIndexes.Quality)]
|
||||||
quality_type = instance_container_info_dict[quality_container_id].parser["metadata"]["quality_type"]
|
quality_type = "empty_quality"
|
||||||
|
if quality_container_id not in ("empty", "empty_quality"):
|
||||||
|
quality_type = instance_container_info_dict[quality_container_id].parser["metadata"]["quality_type"]
|
||||||
|
|
||||||
# Get machine info
|
# Get machine info
|
||||||
serialized = archive.open(global_stack_file).read().decode("utf-8")
|
serialized = archive.open(global_stack_file).read().decode("utf-8")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue