mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:28: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
@ -235,7 +235,7 @@ UM.ManagementPage
|
||||
{
|
||||
Cura.MachineManager.setActiveQuality(base.model.getItem(0).name)
|
||||
}
|
||||
objectList.currentIndex = -1 //Reset selection.
|
||||
objectList.currentIndex = -1 //Reset selection.
|
||||
}
|
||||
}
|
||||
UM.RenameDialog
|
||||
@ -243,7 +243,11 @@ UM.ManagementPage
|
||||
id: renameDialog;
|
||||
object: base.currentItem != null ? base.currentItem.name : ""
|
||||
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: {
|
||||
if(removeWhenRejected) {
|
||||
Cura.ContainerManager.removeQualityChanges(base.currentItem.name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user