mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 01:25:58 +08:00
parent
a0bbf98fba
commit
5235f74adf
@ -149,7 +149,7 @@ class MachineManagerModel(QObject):
|
||||
# Create a name that is not empty and unique
|
||||
def _createUniqueName(self, object_type, name, fallback_name):
|
||||
name = name.strip()
|
||||
num_check = re.compile("(.*?)\s*#\d$").match(name)
|
||||
num_check = re.compile("(.*?)\s*#\d+$").match(name)
|
||||
if(num_check):
|
||||
name = num_check.group(1)
|
||||
if name == "":
|
||||
|
Loading…
x
Reference in New Issue
Block a user