Fix focus change when opening HW select list

Previously it was not possible to select a HW device without a mouse
because the focus change to the HW list was not working.  This is
because an extra nested ListView had been left in.  Remove the extra
ListView and set the focus target correctly.
This commit is contained in:
David Turner 2023-10-17 14:56:11 +01:00
parent 7fdf3d033f
commit 73de734016

View file

@ -132,7 +132,7 @@ ApplicationWindow {
Layout.fillWidth: true Layout.fillWidth: true
onClicked: { onClicked: {
hwpopup.open() hwpopup.open()
hwlistview.currentItem.forceActiveFocus() hwlist.currentItem.forceActiveFocus()
} }
Accessible.ignored: ospopup.visible || dstpopup.visible || hwpopup.visible Accessible.ignored: ospopup.visible || dstpopup.visible || hwpopup.visible
Accessible.description: qsTr("Select this button to choose your target Raspberry Pi") Accessible.description: qsTr("Select this button to choose your target Raspberry Pi")
@ -477,10 +477,6 @@ ApplicationWindow {
Layout.preferredWidth: hwlist.width Layout.preferredWidth: hwlist.width
Layout.preferredHeight: hwlist.height Layout.preferredHeight: hwlist.height
ListView {
id: hwlistview
interactive: false
ListView { ListView {
id: hwlist id: hwlist
model: ListModel { model: ListModel {
@ -517,7 +513,6 @@ ApplicationWindow {
} }
} }
} }
}
/* /*
Popup for OS selection Popup for OS selection