From fcb2659c53cd12f35269d9645159271fb1210637 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Tue, 24 Nov 2020 18:45:08 +0100 Subject: [PATCH] Add selected effect to selected room This fix #55 --- imports/NeoChat/Page/RoomListPage.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/imports/NeoChat/Page/RoomListPage.qml b/imports/NeoChat/Page/RoomListPage.qml index 6b5ba32c4..6bb591279 100644 --- a/imports/NeoChat/Page/RoomListPage.qml +++ b/imports/NeoChat/Page/RoomListPage.qml @@ -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; } } }