Add selected effect to selected room

This fix #55
This commit is contained in:
Carl Schwan
2020-11-24 18:45:08 +01:00
parent 8da4ff1585
commit fcb2659c53

View File

@@ -80,9 +80,11 @@ Kirigami.ScrollablePage {
}
delegate: Kirigami.SwipeListItem {
id: roomListItem
property bool itemVisible: model.categoryVisible || sortFilterRoomListModel.filterText.length > 0 || Config.mergeRoomList
visible: itemVisible
height: itemVisible ? implicitHeight : 0
highlighted: roomManager.currentRoom && roomManager.currentRoom.name === name
focus: true
action: Kirigami.Action {
id: enterRoomAction
@@ -186,6 +188,7 @@ Kirigami.ScrollablePage {
roomListContextMenu.createObject(roomLayout, {"room": currentRoom}).popup()
} else {
enterRoomAction.trigger();
listView.currentIndex = index;
}
}
}