HMenuItem: always use onTriggered, not onClicked
This commit is contained in:
parent
b6500add68
commit
dc2a7b8ee1
3
TODO.md
3
TODO.md
|
@ -3,8 +3,7 @@
|
|||
- fix highlight when logging in to new account
|
||||
- warn about no E2E room shared if no devices
|
||||
- keyboard controls
|
||||
- HTile enter trigger leftClicked()
|
||||
- HMenuItem: use onTriggered, not onClicked
|
||||
- Make HTile enter key trigger leftClicked()
|
||||
|
||||
## Refactoring
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ HMenu {
|
|||
HMenuItem {
|
||||
icon.name: "account-settings"
|
||||
text: qsTr("Account settings")
|
||||
onClicked: pageLoader.showPage(
|
||||
onTriggered: pageLoader.showPage(
|
||||
"AccountSettings/AccountSettings", { "userId": userId },
|
||||
)
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ HMenu {
|
|||
HMenuItem {
|
||||
icon.name: "menu-add-chat"
|
||||
text: qsTr("Add new chat")
|
||||
onClicked: pageLoader.showPage("AddChat/AddChat", {userId: userId})
|
||||
onTriggered: pageLoader.showPage("AddChat/AddChat", {userId: userId})
|
||||
}
|
||||
|
||||
HMenuItem {
|
||||
|
|
Loading…
Reference in New Issue
Block a user