mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 19:39:03 +08:00
Merge pull request #6814 from Ultimaker/CURA-7048_PPA-Crash_when_using_UM2_printers
Fix PPA crashing on single-extruder printers
This commit is contained in:
commit
bd7b8f4a93
@ -894,8 +894,8 @@ 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:
|
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