mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Set currentIndex to a more logical successor when deleting a material
This commit is contained in:
parent
00f3cf409b
commit
b4f56d10d7
1 changed files with 4 additions and 0 deletions
|
@ -272,6 +272,10 @@ UM.ManagementPage
|
||||||
{
|
{
|
||||||
Cura.ContainerManager.removeContainer(containers[i])
|
Cura.ContainerManager.removeContainer(containers[i])
|
||||||
}
|
}
|
||||||
|
if(base.objectList.currentIndex > 0)
|
||||||
|
{
|
||||||
|
base.objectList.currentIndex--;
|
||||||
|
}
|
||||||
currentItem = base.model.getItem(base.objectList.currentIndex) // Refresh the current item.
|
currentItem = base.model.getItem(base.objectList.currentIndex) // Refresh the current item.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue