mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:29:02 +08: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
@ -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…
x
Reference in New Issue
Block a user