Regularize context menu
"Open in new Window" goes on top, as it does in most other context menus with similar items "Leave room" goes on the bottom with a separator above it, because it's a mildly destructive action.
This commit is contained in:
@@ -15,6 +15,13 @@ Menu {
|
||||
id: root
|
||||
property var room
|
||||
|
||||
MenuItem {
|
||||
text: i18n("Open in new window")
|
||||
onTriggered: roomManager.openWindow(room);
|
||||
}
|
||||
|
||||
MenuSeparator {}
|
||||
|
||||
MenuItem {
|
||||
text: room.isFavourite ? i18n("Remove from Favourites") : i18n("Add to Favourites")
|
||||
|
||||
@@ -27,8 +34,6 @@ Menu {
|
||||
onTriggered: room.isLowPriority ? room.removeTag("m.lowpriority") : room.addTag("m.lowpriority", 1.0)
|
||||
}
|
||||
|
||||
MenuSeparator {}
|
||||
|
||||
MenuItem {
|
||||
text: i18n("Mark as Read")
|
||||
|
||||
@@ -42,12 +47,5 @@ Menu {
|
||||
onTriggered: room.forget()
|
||||
}
|
||||
|
||||
MenuSeparator {}
|
||||
|
||||
MenuItem {
|
||||
text: i18n("Open in new window")
|
||||
onTriggered: roomManager.openWindow(room);
|
||||
}
|
||||
|
||||
onClosed: destroy()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user