Fix selection in room list
This commit is contained in:
@@ -88,7 +88,6 @@ Kirigami.ScrollablePage {
|
|||||||
action: Kirigami.Action {
|
action: Kirigami.Action {
|
||||||
onTriggered: roomListModel.setCategoryVisible(section, !roomListModel.categoryVisible(section))
|
onTriggered: roomListModel.setCategoryVisible(section, !roomListModel.categoryVisible(section))
|
||||||
}
|
}
|
||||||
highlighted: sortFilterRoomListModel.mapFromSource(current).row == index
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
implicitHeight: categoryName.implicitHeight
|
implicitHeight: categoryName.implicitHeight
|
||||||
Kirigami.Heading {
|
Kirigami.Heading {
|
||||||
@@ -111,6 +110,7 @@ Kirigami.ScrollablePage {
|
|||||||
delegate: Kirigami.BasicListItem {
|
delegate: Kirigami.BasicListItem {
|
||||||
id: roomListItem
|
id: roomListItem
|
||||||
visible: model.categoryVisible || sortFilterRoomListModel.filterText.length > 0 || Config.mergeRoomList
|
visible: model.categoryVisible || sortFilterRoomListModel.filterText.length > 0 || Config.mergeRoomList
|
||||||
|
highlighted: listView.currentIndex === index
|
||||||
focus: true
|
focus: true
|
||||||
icon: undefined
|
icon: undefined
|
||||||
action: Kirigami.Action {
|
action: Kirigami.Action {
|
||||||
|
|||||||
Reference in New Issue
Block a user