mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:49:00 +08:00
Also validate machine name in rename dialogue
Otherwise you could still circumvent the length limitation. Contributes to issue CURA-2692.
This commit is contained in:
parent
d33f6d2e44
commit
9f43a740a6
@ -251,6 +251,8 @@ UM.ManagementPage
|
||||
{
|
||||
id: renameDialog;
|
||||
object: base.currentItem && base.currentItem.name ? base.currentItem.name : "";
|
||||
property var machine_name_validator: Cura.MachineNameValidator { }
|
||||
validName: renameDialog.newName.match(renameDialog.machine_name_validator.machineNameRegex) != null;
|
||||
onAccepted:
|
||||
{
|
||||
Cura.MachineManager.renameMachine(base.currentItem.id, newName.trim());
|
||||
|
Loading…
x
Reference in New Issue
Block a user