Deprecated the allActiveMaterialIds and replaced the single location where it was used

CURA-6600
This commit is contained in:
Jaime van Kessel 2019-08-21 17:08:35 +02:00
parent 7979fcd633
commit e7609fadf4
2 changed files with 3 additions and 1 deletions

View File

@ -602,6 +602,7 @@ class MachineManager(QObject):
#
# \return The material ids in all stacks
@pyqtProperty("QVariantMap", notify = activeMaterialChanged)
@deprecated("use Cura.MachineManager.activeStack.extruders instead.", "4.3")
def allActiveMaterialIds(self) -> Dict[str, str]:
result = {}

View File

@ -14,7 +14,8 @@ Menu
property int extruderIndex: 0
property string currentRootMaterialId: Cura.MachineManager.currentRootMaterialId[extruderIndex]
property string activeMaterialId: Cura.MachineManager.allActiveMaterialIds[Cura.ExtruderManager.extruderIds[extruderIndex]]
property string activeMaterialId: Cura.MachineManager.activeMachine.extruders[extruderIndex].material.id
property bool updateModels: true
Cura.FavoriteMaterialsModel
{