Fix the room list menu
As title
This commit is contained in:
@@ -194,20 +194,20 @@ Loader {
|
|||||||
|
|
||||||
Kirigami.BasicListItem {
|
Kirigami.BasicListItem {
|
||||||
text: room.isLowPriority ? i18n("Reprioritize") : i18n("Deprioritize")
|
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)
|
onClicked: room.isLowPriority ? room.removeTag("m.lowpriority") : room.addTag("m.lowpriority", 1.0)
|
||||||
implicitHeight: visible ? Kirigami.Units.gridUnit * 3 : 0
|
implicitHeight: visible ? Kirigami.Units.gridUnit * 3 : 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Kirigami.BasicListItem {
|
Kirigami.BasicListItem {
|
||||||
text: i18n("Mark as Read")
|
text: i18n("Mark as Read")
|
||||||
icon: "checkmark"
|
icon.name: "checkmark"
|
||||||
onClicked: room.markAllMessagesAsRead()
|
onClicked: room.markAllMessagesAsRead()
|
||||||
implicitHeight: visible ? Kirigami.Units.gridUnit * 3 : 0
|
implicitHeight: visible ? Kirigami.Units.gridUnit * 3 : 0
|
||||||
}
|
}
|
||||||
Kirigami.BasicListItem {
|
Kirigami.BasicListItem {
|
||||||
text: i18n("Leave Room")
|
text: i18n("Leave Room")
|
||||||
icon: "go-previous"
|
icon.name: "go-previous"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
RoomManager.leaveRoom(room)
|
RoomManager.leaveRoom(room)
|
||||||
drawer.close()
|
drawer.close()
|
||||||
|
|||||||
@@ -136,10 +136,10 @@ Delegates.RoundedItemDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createRoomListContextMenu() {
|
function createRoomListContextMenu() {
|
||||||
const component = Qt.createComponent(Qt.resolvedUrl("./ContextMenu.qml"))
|
const component = Qt.createComponent("qrc:/RoomList/ContextMenu.qml")
|
||||||
const menu = component.createObject(root, {
|
const menu = component.createObject(root, {
|
||||||
room: root.currentRoom,
|
room: root.currentRoom,
|
||||||
connection: root.connection,
|
connection: root.connection
|
||||||
});
|
});
|
||||||
if (!Kirigami.Settings.isMobile && !Config.compactRoomList) {
|
if (!Kirigami.Settings.isMobile && !Config.compactRoomList) {
|
||||||
configButton.visible = true;
|
configButton.visible = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user