Erase changed hotends/materials after applying changes

Otherwise we may only change one of the extruders next time, and it'll still have the other change in this dictionary from the previous time we are syncing from the printer.

Contributes to issue CURA-3788.
This commit is contained in:
Ghostkeeper 2017-05-19 14:39:22 +02:00
parent 81d03a1683
commit 76a9a9a9ab
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -220,6 +220,7 @@ class MachineManager(QObject):
if old_index is not None:
extruder_manager.setActiveExtruderIndex(old_index)
self._auto_materials_changed = {} #Processed all of them now.
def _autoUpdateHotends(self):
extruder_manager = ExtruderManager.getInstance()
@ -236,6 +237,7 @@ class MachineManager(QObject):
if old_index is not None:
extruder_manager.setActiveExtruderIndex(old_index)
self._auto_hotends_changed = {} #Processed all of them now.
def _onGlobalContainerChanged(self):
if self._global_container_stack: