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