Use verb when possible instead of "OK" for buttons
This commit is contained in:
parent
9f8ac6ca9f
commit
3ef32b4c04
|
@ -20,7 +20,7 @@ HPopup {
|
||||||
|
|
||||||
box.clickButtonOnEnter: "ok"
|
box.clickButtonOnEnter: "ok"
|
||||||
box.buttonModel: [
|
box.buttonModel: [
|
||||||
{ name: "ok", text: okText, iconName: "ok" , enabled: okEnabled},
|
{ name: "ok", text: okText, iconName: "ok", enabled: okEnabled},
|
||||||
{ name: "cancel", text: qsTr("Cancel"), iconName: "cancel" },
|
{ name: "cancel", text: qsTr("Cancel"), iconName: "cancel" },
|
||||||
]
|
]
|
||||||
box.buttonCallbacks: ({
|
box.buttonCallbacks: ({
|
||||||
|
|
|
@ -7,6 +7,7 @@ HBoxPopup {
|
||||||
"The messages will only be removed on your side. " +
|
"The messages will only be removed on your side. " +
|
||||||
"They will be available again after you restart the application."
|
"They will be available again after you restart the application."
|
||||||
)
|
)
|
||||||
|
okText: qsTr("Clear")
|
||||||
box.focusButton: "ok"
|
box.focusButton: "ok"
|
||||||
|
|
||||||
onOk: py.callClientCoro(userId, "clear_events", [roomId])
|
onOk: py.callClientCoro(userId, "clear_events", [roomId])
|
||||||
|
|
|
@ -63,6 +63,8 @@ HBox {
|
||||||
|
|
||||||
id: exportPasswordPopup
|
id: exportPasswordPopup
|
||||||
details.text: qsTr("Please enter a passphrase to protect this file:")
|
details.text: qsTr("Please enter a passphrase to protect this file:")
|
||||||
|
okText: qsTr("Export")
|
||||||
|
|
||||||
onAcceptedPasswordChanged:
|
onAcceptedPasswordChanged:
|
||||||
encryptionUI.exportKeys(file, acceptedPassword, exportButton)
|
encryptionUI.exportKeys(file, acceptedPassword, exportButton)
|
||||||
}
|
}
|
||||||
|
@ -82,6 +84,8 @@ HBox {
|
||||||
details.text: qsTr(
|
details.text: qsTr(
|
||||||
"Please enter the passphrase that was used to protect this file:"
|
"Please enter the passphrase that was used to protect this file:"
|
||||||
)
|
)
|
||||||
|
okText: qsTr("Import")
|
||||||
|
|
||||||
onAcceptedPasswordChanged:
|
onAcceptedPasswordChanged:
|
||||||
encryptionUI.importKeys(file, acceptedPassword)
|
encryptionUI.importKeys(file, acceptedPassword)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user