mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 01:25:51 +08:00
Update Printer manager details pane after removing a printer
CURA-2085
This commit is contained in:
parent
4472e0206e
commit
633e37713c
@ -142,7 +142,14 @@ UM.ManagementPage
|
|||||||
{
|
{
|
||||||
id: confirmDialog;
|
id: confirmDialog;
|
||||||
object: base.currentItem && base.currentItem.name ? base.currentItem.name : "";
|
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
|
UM.RenameDialog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user