mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Rename parameter in _uniqueName
Original means the original name. That's better. Contributes to issues CURA-1278 and CURA-340.
This commit is contained in:
parent
890303da14
commit
9fe5435963
1 changed files with 2 additions and 2 deletions
|
@ -177,10 +177,10 @@ class ExtruderManager(QObject):
|
|||
container_registry.addContainer(container_stack)
|
||||
|
||||
|
||||
def _uniqueName(self, extruder):
|
||||
def _uniqueName(self, original):
|
||||
container_registry = UM.Settings.ContainerRegistry.getInstance()
|
||||
|
||||
name = extruder.strip()
|
||||
name = original.strip()
|
||||
num_check = re.compile("(.*?)\s*#\d$").match(name)
|
||||
if num_check: # There is a number in the name.
|
||||
name = num_check.group(1) # Filter out the number.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue