mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
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:
parent
df363a024a
commit
e16fedf2d8
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue