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