HMenuItem: always use onTriggered, not onClicked

This commit is contained in:
miruka 2020-07-09 13:13:17 -04:00
parent b6500add68
commit dc2a7b8ee1
2 changed files with 3 additions and 4 deletions

View File

@ -3,8 +3,7 @@
- fix highlight when logging in to new account - fix highlight when logging in to new account
- warn about no E2E room shared if no devices - warn about no E2E room shared if no devices
- keyboard controls - keyboard controls
- HTile enter trigger leftClicked() - Make HTile enter key trigger leftClicked()
- HMenuItem: use onTriggered, not onClicked
## Refactoring ## Refactoring

View File

@ -11,7 +11,7 @@ HMenu {
HMenuItem { HMenuItem {
icon.name: "account-settings" icon.name: "account-settings"
text: qsTr("Account settings") text: qsTr("Account settings")
onClicked: pageLoader.showPage( onTriggered: pageLoader.showPage(
"AccountSettings/AccountSettings", { "userId": userId }, "AccountSettings/AccountSettings", { "userId": userId },
) )
} }
@ -19,7 +19,7 @@ HMenu {
HMenuItem { HMenuItem {
icon.name: "menu-add-chat" icon.name: "menu-add-chat"
text: qsTr("Add new chat") text: qsTr("Add new chat")
onClicked: pageLoader.showPage("AddChat/AddChat", {userId: userId}) onTriggered: pageLoader.showPage("AddChat/AddChat", {userId: userId})
} }
HMenuItem { HMenuItem {