mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
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.
This commit is contained in:
parent
3ac9036b4a
commit
425dbf1ad8
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ class MachineManager(QObject):
|
||||||
# Notify UI items, such as the "changed" star in profile pull down menu.
|
# Notify UI items, such as the "changed" star in profile pull down menu.
|
||||||
self.activeStackValueChanged.emit()
|
self.activeStackValueChanged.emit()
|
||||||
|
|
||||||
if property_name == "validationState":
|
elif property_name == "validationState":
|
||||||
if not self._stacks_have_errors:
|
if not self._stacks_have_errors:
|
||||||
# fast update, we only have to look at the current changed property
|
# 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"):
|
if self._global_container_stack.getProperty("machine_extruder_count", "value") > 1 and self._active_container_stack.getProperty(key, "settable_per_extruder"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue