mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 01:09:06 +08:00
Update current item when importing new material
Since we select the newly imported material, we need to update the current item so that the window on the right also gets updated. Contributes to issue CURA-3138.
This commit is contained in:
parent
4fdaf734fc
commit
0ca157518e
@ -278,6 +278,7 @@ UM.ManagementPage
|
|||||||
{
|
{
|
||||||
messageDialog.icon = StandardIcon.Information
|
messageDialog.icon = StandardIcon.Information
|
||||||
messageDialog.text = catalog.i18nc("@info:status", "Successfully imported material <filename>%1</filename>").arg(fileUrl)
|
messageDialog.text = catalog.i18nc("@info:status", "Successfully imported material <filename>%1</filename>").arg(fileUrl)
|
||||||
|
currentItem = base.model.getItem(base.objectList.currentIndex)
|
||||||
}
|
}
|
||||||
else if(result.status == "duplicate")
|
else if(result.status == "duplicate")
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user