mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-29 05:41:05 -07: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
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,11 @@ Item
|
||||||
{
|
{
|
||||||
forceActiveFocus()
|
forceActiveFocus()
|
||||||
materialDetailsPanel.currentItem = currentItem
|
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
|
// Main layout
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue