mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 05:53:59 -06:00
Fix material current item reset
CURA-6679
This commit is contained in:
parent
0c66fd82d4
commit
2ce567ccfe
2 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue