mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 20:19:13 +08:00
Fix check that finds the extruder in a position
CURA-7048
This commit is contained in:
parent
a1d7eefc42
commit
50b8ff2352
@ -894,7 +894,7 @@ class MachineManager(QObject):
|
|||||||
|
|
||||||
@pyqtSlot(int, bool)
|
@pyqtSlot(int, bool)
|
||||||
def setExtruderEnabled(self, position: int, enabled: bool) -> None:
|
def setExtruderEnabled(self, position: int, enabled: bool) -> None:
|
||||||
if self._global_container_stack is None or position not in self._global_container_stack.extruders:
|
if self._global_container_stack is None or str(position) not in self._global_container_stack.extruders:
|
||||||
Logger.log("w", "Could not find extruder on position %s.", position)
|
Logger.log("w", "Could not find extruder on position %s.", position)
|
||||||
return
|
return
|
||||||
extruder = self._global_container_stack.extruderList[position]
|
extruder = self._global_container_stack.extruderList[position]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user