Changing name of extruder also changes name in container stack

This name may be used to get a unique human-readable name. Just for consistency really.

Contributes to issues CURA-1278 and CURA-351.
This commit is contained in:
Ghostkeeper 2016-06-02 13:27:11 +02:00
parent df363a024a
commit e16fedf2d8
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -135,9 +135,12 @@ class Extruder:
return self._name
## Changes the name of this extruder.
#
# \param value The new name for this extruder.
@name.setter
def name(self, value):
self._name = value
self._container_stack.setName(value) #Also update in container stack, being defensive.
self.name_changed.emit()
## Gets the currently active nozzle on this extruder.