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:
authorJaime van Kessel <nallath@gmail.com>2022-03-24 16:26:03 +0300
committerJaime van Kessel <nallath@gmail.com>2022-03-24 16:26:03 +0300
commit1532779d1b7b7da7f096d67f1546760851fbb139 (patch)
tree2a0b0dfa87b71ae22ed264b264b9a53bde7ccf7f
parent58a63aed02a69a620b7520ec3f21239f84e49217 (diff)
Remove Extruders property from global stackCURA-7810_remove_deprecated_functions
CURA-7810
-rwxr-xr-xcura/Settings/GlobalStack.py10
-rw-r--r--resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml2
2 files changed, 1 insertions, 11 deletions
diff --git a/cura/Settings/GlobalStack.py b/cura/Settings/GlobalStack.py
index 282034c0ee..d40ae08236 100755
--- a/cura/Settings/GlobalStack.py
+++ b/cura/Settings/GlobalStack.py
@@ -60,16 +60,6 @@ class GlobalStack(CuraContainerStack):
extrudersChanged = pyqtSignal()
configuredConnectionTypesChanged = pyqtSignal()
- @pyqtProperty("QVariantMap", notify = extrudersChanged)
- @deprecated("Please use extruderList instead.", "4.4")
- def extruders(self) -> Dict[str, "ExtruderStack"]:
- """Get the list of extruders of this stack.
-
- :return: The extruders registered with this stack.
- """
-
- return self._extruders
-
@pyqtProperty("QVariantList", notify = extrudersChanged)
def extruderList(self) -> List["ExtruderStack"]:
result_tuple_list = sorted(list(self._extruders.items()), key=lambda x: int(x[0]))
diff --git a/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml b/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml
index f0b6e14683..58d96f8028 100644
--- a/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml
+++ b/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml
@@ -55,7 +55,7 @@ Cura.ExpandablePopup
Layout.maximumWidth: Math.round(parent.width / extrudersModel.count)
Layout.fillHeight: true
- property var extruderStack: activeMachine ? activeMachine.extruders[model.index]: null
+ property var extruderStack: activeMachine ? activeMachine.extruderList[model.index]: null
property bool valueWarning: !Cura.ExtruderManager.getExtruderHasQualityForMaterial(extruderStack)
property bool valueError: activeMachine ? Cura.ContainerManager.getContainerMetaDataEntry(extruderStack.material.id, "compatible", "") != "True" : false