Don't hide room when searching
This makes it more easy to find the room you want without having to clicking on every collapsed sections.
This commit is contained in:
@@ -55,7 +55,7 @@ Kirigami.ScrollablePage {
|
|||||||
roomSortOrder: SortFilterRoomListModel.Categories
|
roomSortOrder: SortFilterRoomListModel.Categories
|
||||||
}
|
}
|
||||||
|
|
||||||
section.property: "category"
|
section.property: sortFilterRoomListModel.filterText.length === 0 ? "category" : null
|
||||||
section.delegate: Kirigami.ListSectionHeader {
|
section.delegate: Kirigami.ListSectionHeader {
|
||||||
id: sectionHeader
|
id: sectionHeader
|
||||||
action: Kirigami.Action {
|
action: Kirigami.Action {
|
||||||
@@ -80,8 +80,8 @@ Kirigami.ScrollablePage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
delegate: Kirigami.SwipeListItem {
|
delegate: Kirigami.SwipeListItem {
|
||||||
visible: model.categoryVisible
|
visible: model.categoryVisible || sortFilterRoomListModel.filterText.length > 0
|
||||||
height: model.categoryVisible ? implicitHeight : 0
|
height: model.categoryVisible || sortFilterRoomListModel.filterText.length > 0 ? implicitHeight : 0
|
||||||
focus: true
|
focus: true
|
||||||
action: Kirigami.Action {
|
action: Kirigami.Action {
|
||||||
id: enterRoomAction
|
id: enterRoomAction
|
||||||
|
|||||||
Reference in New Issue
Block a user