mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 07:29:00 +08:00
Fix material current item reset
CURA-6679
This commit is contained in:
parent
0c66fd82d4
commit
2ce567ccfe
@ -102,6 +102,7 @@ Item
|
||||
}
|
||||
}
|
||||
}
|
||||
base.currentItem = null
|
||||
return false
|
||||
}
|
||||
|
||||
|
@ -58,6 +58,11 @@ Item
|
||||
{
|
||||
forceActiveFocus()
|
||||
materialDetailsPanel.currentItem = currentItem
|
||||
// CURA-6679 If the current item is gone after the model update, reset the current item to the active material.
|
||||
if (currentItem == null)
|
||||
{
|
||||
resetExpandedActiveMaterial()
|
||||
}
|
||||
}
|
||||
|
||||
// Main layout
|
||||
|
Loading…
x
Reference in New Issue
Block a user