Reset infill line distance when changing density via recommended mode

Otherwise the change has no effect.

Contributes to issue CURA-5324.
This commit is contained in:
Ghostkeeper 2018-06-04 16:58:13 +02:00
parent 21dd29f035
commit 02a3067a0c
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A
2 changed files with 9 additions and 0 deletions

View file

@ -981,6 +981,14 @@ class MachineManager(QObject):
container = extruder.userChanges
container.setProperty(setting_name, property_name, property_value)
## Reset all setting properties of a setting for all extruders.
# \param setting_name The ID of the setting to reset.
@pyqtSlot(str)
def resetSettingForAllExtruders(self, setting_name: str) -> None:
for key, extruder in self._global_container_stack.extruders.items():
container = extruder.userChanges
container.removeInstance(setting_name)
@pyqtProperty("QVariantList", notify = globalContainerChanged)
def currentExtruderPositions(self) -> List[str]:
if self._global_container_stack is None: