Browse Source

Only check for validationState changes if it's not already a value change

No need to check the second if-statement in most cases.

Contributes to issue CURA-3291.
Ghostkeeper 8 years ago
parent
commit
425dbf1ad8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cura/Settings/MachineManager.py

+ 1 - 1
cura/Settings/MachineManager.py

@@ -300,7 +300,7 @@ class MachineManager(QObject):
             # Notify UI items, such as the "changed" star in profile pull down menu.
             self.activeStackValueChanged.emit()
 
-        if property_name == "validationState":
+        elif property_name == "validationState":
             if not self._stacks_have_errors:
                 # fast update, we only have to look at the current changed property
                 if self._global_container_stack.getProperty("machine_extruder_count", "value") > 1 and self._active_container_stack.getProperty(key, "settable_per_extruder"):