Renamed packageContainerIds to getPackageContainerIds. CURA-5389

This commit is contained in:
Jack Ha 2018-07-09 14:36:38 +02:00
parent aa0c7d5f0a
commit 513bd4f84a

View file

@ -25,7 +25,7 @@ class CuraPackageManager(PackageManager):
# It loops through all the package contents and see if some of the ids are used. # It loops through all the package contents and see if some of the ids are used.
# The list consists of 3-tuples: (global_stack, extruder_nr, container_id) # The list consists of 3-tuples: (global_stack, extruder_nr, container_id)
def packageUsed(self, package_id: str): def packageUsed(self, package_id: str):
ids = self.packageContainerIds(package_id) ids = self.getPackageContainerIds(package_id)
container_stacks = ContainerRegistry.getInstance().findContainerStacks() container_stacks = ContainerRegistry.getInstance().findContainerStacks()
global_stacks = [container_stack for container_stack in container_stacks if isinstance(container_stack, GlobalStack)] global_stacks = [container_stack for container_stack in container_stacks if isinstance(container_stack, GlobalStack)]
machine_with_materials = [] machine_with_materials = []