PushRuleSettingsPopup: handle enter to save
This commit is contained in:
parent
156f89aca1
commit
ef1f6edf31
|
@ -1,6 +1,5 @@
|
|||
# TODO
|
||||
|
||||
- enter in field
|
||||
- sfx selection
|
||||
- custom action
|
||||
|
||||
|
|
|
@ -78,6 +78,7 @@ HFlickableColumnPopup {
|
|||
|
||||
page.footer: AutoDirectionLayout {
|
||||
ApplyButton {
|
||||
id: applyButton
|
||||
text: qsTr("Save changes")
|
||||
enabled: swipeView.currentItem.idField.text.trim() !== ""
|
||||
loading: saveFutureId !== ""
|
||||
|
@ -98,6 +99,8 @@ HFlickableColumnPopup {
|
|||
}
|
||||
}
|
||||
|
||||
onKeyboardAccept: applyButton.clicked()
|
||||
|
||||
CustomLabel {
|
||||
visible: root.rule.default
|
||||
text: qsTr("Some settings cannot be changed for default server rules")
|
||||
|
|
Loading…
Reference in New Issue
Block a user