summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2022-03-11 13:28:39 +0000
committerGitHub <noreply@github.com>2022-03-11 13:28:39 +0000
commit8309ad2f83dc229708439d6419086b6c16082658 (patch)
tree342d0e451d5cddfaedbb248f126def9160df419c /resources
parentMerge pull request #985 from maltee1/various_bubbles_fixes (diff)
parentUse standard buttons where possible (diff)
downloadnheko-8309ad2f83dc229708439d6419086b6c16082658.tar.xz
Merge pull request #986 from tastytea/use-standard-buttons
Use standard buttons where possible
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/dialogs/ImagePackEditorDialog.qml19
-rw-r--r--resources/qml/dialogs/JoinRoomDialog.qml6
2 files changed, 6 insertions, 19 deletions
diff --git a/resources/qml/dialogs/ImagePackEditorDialog.qml b/resources/qml/dialogs/ImagePackEditorDialog.qml

index 49c9ea07..891d9c3d 100644 --- a/resources/qml/dialogs/ImagePackEditorDialog.qml +++ b/resources/qml/dialogs/ImagePackEditorDialog.qml
@@ -329,21 +329,12 @@ ApplicationWindow { footer: DialogButtonBox { id: buttons - Button { - text: qsTr("Cancel") - DialogButtonBox.buttonRole: DialogButtonBox.DestructiveRole - onClicked: win.close() + standardButtons: DialogButtonBox.Save | DialogButtonBox.Cancel + onAccepted: { + imagePack.save(); + win.close(); } - - Button { - text: qsTr("Save") - DialogButtonBox.buttonRole: DialogButtonBox.ApplyRole - onClicked: { - imagePack.save(); - win.close(); - } - } - + onRejected: win.close() } } diff --git a/resources/qml/dialogs/JoinRoomDialog.qml b/resources/qml/dialogs/JoinRoomDialog.qml
index e49f538d..263481aa 100644 --- a/resources/qml/dialogs/JoinRoomDialog.qml +++ b/resources/qml/dialogs/JoinRoomDialog.qml
@@ -54,6 +54,7 @@ ApplicationWindow { footer: DialogButtonBox { id: dbb + standardButtons: DialogButtonBox.Cancel onAccepted: { Nheko.joinRoom(input.text); joinRoomRoot.close(); @@ -68,11 +69,6 @@ ApplicationWindow { DialogButtonBox.buttonRole: DialogButtonBox.AcceptRole } - Button { - text: "Cancel" - DialogButtonBox.buttonRole: DialogButtonBox.RejectRole - } - } }