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
|
- 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
|
||||||
|
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user