mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 23:49:04 +08:00
Fix removing container after rejecting a rename
Contributes to CURA-2006
This commit is contained in:
parent
783d395fbc
commit
2a81d25bf9
@ -223,12 +223,12 @@ 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: Cura.ContainerManager.renameQualityChanges(base.currentItem.name, newName)
|
||||||
onRejected: {
|
onRejected: {
|
||||||
if(removeWhenRejected) {
|
if(removeWhenRejected) {
|
||||||
Cura.MachineManager.removeQualityContainer(base.currentItem.id)
|
Cura.ContainerManager.removeQualityChanges(base.currentItem.name)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onAccepted: Cura.ContainerManager.renameQualityChanges(base.currentItem.name, newName)
|
|
||||||
}
|
}
|
||||||
MessageDialog
|
MessageDialog
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user