diff options
Diffstat (limited to 'mobile-widgets/qml/Preferences.qml')
-rw-r--r-- | mobile-widgets/qml/Preferences.qml | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/mobile-widgets/qml/Preferences.qml b/mobile-widgets/qml/Preferences.qml index 979a49b1d..f7767b4d7 100644 --- a/mobile-widgets/qml/Preferences.qml +++ b/mobile-widgets/qml/Preferences.qml @@ -9,14 +9,16 @@ import org.subsurfacedivelog.mobile 1.0 Kirigami.Page { title: "Preferences" - mainAction: Action { - text: "Save" - iconName: "document-save" - onTriggered: { - manager.distanceThreshold = distanceThreshold.text - manager.timeThreshold = timeThreshold.text - manager.savePreferences() - stackView.pop() + actions { + main: Action { + text: "Save" + iconName: "document-save" + onTriggered: { + manager.distanceThreshold = distanceThreshold.text + manager.timeThreshold = timeThreshold.text + manager.savePreferences() + stackView.pop() + } } } |