diff options
author | Kostas Karmas <konskarm@gmail.com> | 2020-11-09 20:10:50 +0300 |
---|---|---|
committer | Kostas Karmas <konskarm@gmail.com> | 2020-11-09 20:10:50 +0300 |
commit | 4b35bd1724cd0c0c8da5b85f6627a9678918bd0d (patch) | |
tree | 6bffccf7298955b914255807f96287e22d164227 | |
parent | 69e0e1c4e59f1052dbd9be3ac4cffd4776c5c11a (diff) |
Correct the print sequence when discarding the current changes
CURA-7827
-rw-r--r-- | cura/Settings/ContainerManager.py | 3 | ||||
-rwxr-xr-x | cura/Settings/MachineManager.py | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/cura/Settings/ContainerManager.py b/cura/Settings/ContainerManager.py index 80a0d64474..08fdf707cf 100644 --- a/cura/Settings/ContainerManager.py +++ b/cura/Settings/ContainerManager.py @@ -345,6 +345,9 @@ class ContainerManager(QObject): # user changes are possibly added to make the current setup match the current enabled extruders machine_manager.correctExtruderSettings() + # The Print Sequence should be changed to match the current setup + machine_manager.correctPrintSequence() + for container in send_emits_containers: container.sendPostponedEmits() diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 79bd784f76..1a2ab72a33 100755 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -128,7 +128,7 @@ class MachineManager(QObject): self.activeQualityChangesGroupChanged.connect(self.activeQualityDisplayNameChanged) self.activeStackValueChanged.connect(self._reCalculateNumUserSettings) - self.numberExtrudersEnabledChanged.connect(self._correctPrintSequence) + self.numberExtrudersEnabledChanged.connect(self.correctPrintSequence) activeQualityDisplayNameChanged = pyqtSignal() @@ -858,7 +858,7 @@ class MachineManager(QObject): title = catalog.i18nc("@info:title", "Settings updated")) caution_message.show() - def _correctPrintSequence(self) -> None: + def correctPrintSequence(self) -> None: """ Sets the Print Sequence setting to "all-at-once" when there are more than one enabled extruders. |