mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-30 06:42:04 +08:00
Change the active quality if we remove the active quality
Contributes to CURA-2006
This commit is contained in:
parent
5edeaa1c93
commit
be4db899a6
@ -227,7 +227,15 @@ UM.ManagementPage
|
|||||||
{
|
{
|
||||||
id: confirmDialog
|
id: confirmDialog
|
||||||
object: base.currentItem != null ? base.currentItem.name : ""
|
object: base.currentItem != null ? base.currentItem.name : ""
|
||||||
onYes: Cura.ContainerManager.removeQualityChanges(base.currentItem.name)
|
onYes:
|
||||||
|
{
|
||||||
|
var name = base.currentItem.name;
|
||||||
|
Cura.ContainerManager.removeQualityChanges(name)
|
||||||
|
if(Cura.MachineManager.activeQualityName == name)
|
||||||
|
{
|
||||||
|
Cura.MachineManager.setActiveQuality(base.model.getItem(0).name)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
UM.RenameDialog
|
UM.RenameDialog
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user