Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLipu Fei <lipu.fei815@gmail.com>2018-07-10 15:57:01 +0300
committerLipu Fei <lipu.fei815@gmail.com>2018-07-10 15:57:01 +0300
commitcc5f35dd9181d6a951deeb2e2b007314df3705e3 (patch)
treef4492edaedd6135cbd13fc93ce5b2e046124fe81 /cura/CuraPackageManager.py
parent513bd4f84ae7620bcb521c47f84be64d59c5c8a5 (diff)
Rename some functions and variables
Diffstat (limited to 'cura/CuraPackageManager.py')
-rw-r--r--cura/CuraPackageManager.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/cura/CuraPackageManager.py b/cura/CuraPackageManager.py
index ff93c2b010..95b381989f 100644
--- a/cura/CuraPackageManager.py
+++ b/cura/CuraPackageManager.py
@@ -4,7 +4,6 @@
from cura.CuraApplication import CuraApplication #To find some resource types.
from cura.Settings.GlobalStack import GlobalStack
-from UM.Logger import Logger
from UM.PackageManager import PackageManager #The class we're extending.
from UM.Resources import Resources #To find storage paths for some resource types.
from UM.Settings.ContainerRegistry import ContainerRegistry
@@ -24,7 +23,7 @@ class CuraPackageManager(PackageManager):
# empty if it is never 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)
- def packageUsed(self, package_id: str):
+ def getMachinesUsingPackage(self, package_id: str):
ids = self.getPackageContainerIds(package_id)
container_stacks = ContainerRegistry.getInstance().findContainerStacks()
global_stacks = [container_stack for container_stack in container_stacks if isinstance(container_stack, GlobalStack)]