Only listen for other container stack errors if multi-extrusion

It's not even necessary to check otherwise. Requesting an extruder stack would give None anyway, which would give errors.

Contributes to issue CURA-3291.
This commit is contained in:
Ghostkeeper 2017-02-01 16:28:45 +01:00
parent a0ba1188a1
commit 3ac9036b4a
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -303,7 +303,7 @@ class MachineManager(QObject):
if property_name == "validationState":
if not self._stacks_have_errors:
# fast update, we only have to look at the current changed property
if self._active_container_stack.getProperty(key, "settable_per_extruder"):
if self._global_container_stack.getProperty("machine_extruder_count", "value") > 1 and self._active_container_stack.getProperty(key, "settable_per_extruder"):
extruder_index = int(self._active_container_stack.getProperty(key, "limit_to_extruder"))
if extruder_index >= 0: #We have to look up the value from a different extruder.
stack = ExtruderManager.getInstance().getExtruderStack(str(extruder_index))