Update Printer manager details pane after removing a printer

CURA-2085
This commit is contained in:
fieldOfView 2016-08-15 11:32:09 +02:00
parent 4472e0206e
commit 633e37713c

View file

@ -142,7 +142,14 @@ UM.ManagementPage
{
id: confirmDialog;
object: base.currentItem && base.currentItem.name ? base.currentItem.name : "";
onYes: Cura.MachineManager.removeMachine(base.currentItem.id);
onYes:
{
Cura.MachineManager.removeMachine(base.currentItem.id);
//Reselect current item to update details panel
var index = objectList.currentIndex
objectList.currentIndex = -1
objectList.currentIndex = index
}
}
UM.RenameDialog