mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-30 22:31:21 -07: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue