mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Active the focus when the selected item changes.
In this case, if the user was updating some information in one material and then select other material, the new data is stored. Contributes to CURA-5682.
This commit is contained in:
parent
2bf617b53a
commit
6c9c68e004
1 changed files with 5 additions and 1 deletions
|
@ -45,7 +45,11 @@ Item
|
|||
Component.onCompleted: materialListView.expandActiveMaterial(active_root_material_id)
|
||||
|
||||
// Every time the selected item has changed, notify to the details panel
|
||||
onCurrentItemChanged: materialDetailsPanel.currentItem = currentItem
|
||||
onCurrentItemChanged:
|
||||
{
|
||||
forceActiveFocus()
|
||||
materialDetailsPanel.currentItem = currentItem
|
||||
}
|
||||
|
||||
// Main layout
|
||||
Label
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue