Add indicator on favourite/deprioritize options.

This commit is contained in:
Black Hat 2018-08-02 02:04:45 +08:00
parent 2db402cd5f
commit 34923bb5ab
1 changed files with 2 additions and 2 deletions

View File

@ -210,11 +210,11 @@ Item {
id: roomListMenu id: roomListMenu
MenuItem { MenuItem {
text: "Favourite" text: "Favourite" + (roomListMenu.room && roomListMenu.room.isFavourite ? " \u2713" : "")
onTriggered: roomListMenu.room.isFavourite ? roomListMenu.room.removeTag("m.favourite") : roomListMenu.room.addTag("m.favourite", "1") onTriggered: roomListMenu.room.isFavourite ? roomListMenu.room.removeTag("m.favourite") : roomListMenu.room.addTag("m.favourite", "1")
} }
MenuItem { MenuItem {
text: "Deprioritize" text: "Deprioritize" + (roomListMenu.room && roomListMenu.room.isLowPriority ? " \u2713" : "")
onTriggered: roomListMenu.room.isLowPriority ? roomListMenu.room.removeTag("m.lowpriority") : roomListMenu.room.addTag("m.lowpriority", "1") onTriggered: roomListMenu.room.isLowPriority ? roomListMenu.room.removeTag("m.lowpriority") : roomListMenu.room.addTag("m.lowpriority", "1")
} }
MenuItem { MenuItem {