mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
document why no signals connecting in project file pre-read
CURA-3756
This commit is contained in:
parent
9c747733c4
commit
3e6d4b9230
1 changed files with 5 additions and 0 deletions
|
@ -69,6 +69,11 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||
container_id = self._stripFileToId(file_name)
|
||||
stack = ContainerStack(container_id)
|
||||
# Deserialize stack by converting read data from bytes to string
|
||||
#
|
||||
# NOTE: We do not connect the signals here is because all deserialized stacks here are NOT registered
|
||||
# in the ContainerRegistry. So, some stacks from the profile won't be found in the ContainerRegistry,
|
||||
# and thus failing the signal connecting.
|
||||
#
|
||||
stack.deserialize(archive.open(file_name).read().decode("utf-8"), connect_signals=False)
|
||||
|
||||
stack_type = stack.getMetaDataEntry("type")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue