Commit f0779fb6 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

metadata: make Modify button checkable and keep it enabled

when modifying metadata, it is now possible to go back to rean-only mode
by unchecking the modify button
parent d298ff7b
......@@ -253,7 +253,8 @@ Window {
text: i18n("Modify")
icon.name: 'document-edit'
DialogButtonBox.buttonRole: DialogButtonBox.ActionRole
onClicked: isModifying = true
onCheckedChanged: isModifying = checked
checkable: true
}
Button {
......@@ -352,7 +353,7 @@ Window {
changes: [
PropertyChanges {
target: modifyButton
enabled: false
enabled: true
visible: true
},
PropertyChanges {
......@@ -370,7 +371,7 @@ Window {
changes: [
PropertyChanges {
target: modifyButton
enabled: false
enabled: true
visible: true
},
PropertyChanges {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment