Fix the room list menu

As title
This commit is contained in:
James Graham
2023-09-15 16:22:59 +00:00
parent 33c0cae64c
commit 78f676d71a
2 changed files with 5 additions and 5 deletions

View File

@@ -194,20 +194,20 @@ Loader {
Kirigami.BasicListItem {
text: room.isLowPriority ? i18n("Reprioritize") : i18n("Deprioritize")
icon: room.isLowPriority ? "arrow-up" : "arrow-down"
icon.name: room.isLowPriority ? "arrow-up" : "arrow-down"
onClicked: room.isLowPriority ? room.removeTag("m.lowpriority") : room.addTag("m.lowpriority", 1.0)
implicitHeight: visible ? Kirigami.Units.gridUnit * 3 : 0
}
Kirigami.BasicListItem {
text: i18n("Mark as Read")
icon: "checkmark"
icon.name: "checkmark"
onClicked: room.markAllMessagesAsRead()
implicitHeight: visible ? Kirigami.Units.gridUnit * 3 : 0
}
Kirigami.BasicListItem {
text: i18n("Leave Room")
icon: "go-previous"
icon.name: "go-previous"
onClicked: {
RoomManager.leaveRoom(room)
drawer.close()

View File

@@ -136,10 +136,10 @@ Delegates.RoundedItemDelegate {
}
function createRoomListContextMenu() {
const component = Qt.createComponent(Qt.resolvedUrl("./ContextMenu.qml"))
const component = Qt.createComponent("qrc:/RoomList/ContextMenu.qml")
const menu = component.createObject(root, {
room: root.currentRoom,
connection: root.connection,
connection: root.connection
});
if (!Kirigami.Settings.isMobile && !Config.compactRoomList) {
configButton.visible = true;