mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 22:39:02 +08:00
Remove all dependencies of the CuraContainerStack with the
ContainerRegistry. That will be very helpful for creating unit tests. Also this is not needed because the next stack is always set in the machine or extruder manager when switching printers. Contributes to CURA-5628.
This commit is contained in:
parent
ce9782b3af
commit
e1fd9b03a4
@ -139,9 +139,6 @@ class ExtruderStack(CuraContainerStack):
|
||||
super().deserialize(contents, file_name)
|
||||
if "enabled" not in self.getMetaData():
|
||||
self.setMetaDataEntry("enabled", "True")
|
||||
stacks = ContainerRegistry.getInstance().findContainerStacks(id=self.getMetaDataEntry("machine", ""))
|
||||
if stacks:
|
||||
self.setNextStack(stacks[0])
|
||||
|
||||
def _onPropertiesChanged(self, key: str, properties: Dict[str, Any]) -> None:
|
||||
# When there is a setting that is not settable per extruder that depends on a value from a setting that is,
|
||||
|
Loading…
x
Reference in New Issue
Block a user