mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 08:26:07 +08:00
Custom profiles can now be renamed
This commit is contained in:
parent
80f24b6c54
commit
01999f7ddd
@ -170,7 +170,7 @@ UM.ManagementPage
|
||||
id: renameDialog;
|
||||
object: base.currentItem != null ? base.currentItem.name : "";
|
||||
property bool removeWhenRejected: false;
|
||||
onAccepted: base.model.renameProfile(base.currentItem.name, newName.trim());
|
||||
onAccepted: base.model.rename(base.currentItem.id, newName.trim());
|
||||
onRejected: {
|
||||
if(removeWhenRejected) {
|
||||
base.model.removeProfile(base.currentItem.name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user