mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 15:38:59 +08:00
Renaming a profile will now also reset selection
This forces an update of the display data. Fixes CURA-2164
This commit is contained in:
parent
aac19c94a3
commit
a177b61153
@ -243,7 +243,11 @@ 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)
|
onAccepted:
|
||||||
|
{
|
||||||
|
Cura.ContainerManager.renameQualityChanges(base.currentItem.name, newName)
|
||||||
|
objectList.currentIndex = -1 //Reset selection.
|
||||||
|
}
|
||||||
onRejected: {
|
onRejected: {
|
||||||
if(removeWhenRejected) {
|
if(removeWhenRejected) {
|
||||||
Cura.ContainerManager.removeQualityChanges(base.currentItem.name)
|
Cura.ContainerManager.removeQualityChanges(base.currentItem.name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user