mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:59:00 +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)
|
||||
def setExtruderEnabled(self, position: int, enabled: bool) -> None:
|
||||
if self._global_container_stack is None:
|
||||
Logger.log("w", "Could not find extruder on position %s", position)
|
||||
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)
|
||||
return
|
||||
extruder = self._global_container_stack.extruderList[position]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user