mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 23:45:59 +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;
|
id: renameDialog;
|
||||||
object: base.currentItem != null ? base.currentItem.name : "";
|
object: base.currentItem != null ? base.currentItem.name : "";
|
||||||
property bool removeWhenRejected: false;
|
property bool removeWhenRejected: false;
|
||||||
onAccepted: base.model.renameProfile(base.currentItem.name, newName.trim());
|
onAccepted: base.model.rename(base.currentItem.id, newName.trim());
|
||||||
onRejected: {
|
onRejected: {
|
||||||
if(removeWhenRejected) {
|
if(removeWhenRejected) {
|
||||||
base.model.removeProfile(base.currentItem.name)
|
base.model.removeProfile(base.currentItem.name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user