mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-04 06:05:12 +08:00
Set currentIndex to a more logical successor when deleting a material
This commit is contained in:
parent
00f3cf409b
commit
b4f56d10d7
@ -272,6 +272,10 @@ UM.ManagementPage
|
||||
{
|
||||
Cura.ContainerManager.removeContainer(containers[i])
|
||||
}
|
||||
if(base.objectList.currentIndex > 0)
|
||||
{
|
||||
base.objectList.currentIndex--;
|
||||
}
|
||||
currentItem = base.model.getItem(base.objectList.currentIndex) // Refresh the current item.
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user