diff options
author | Jocke <j.bygdell@gmail.com> | 2018-09-23 07:29:09 +0200 |
---|---|---|
committer | Jan Mulder <jlmulder@xs4all.nl> | 2018-09-25 15:35:02 +0200 |
commit | 3b8f36ff1399236cb0c2976c77546ef7c813cb8e (patch) | |
tree | e62ac5ae35c7ac71d448302b109b974ebf2f70c3 /mobile-widgets/qml/Settings.qml | |
parent | 69cead138bf376d2ea02b4e5cc45a90b69afc3f3 (diff) | |
download | subsurface-3b8f36ff1399236cb0c2976c77546ef7c813cb8e.tar.gz |
Mobile/Settings: Disable unusable option
Disable the "Forget DCs" button when there is no DCs saved.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qml/Settings.qml')
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index 6018fed3e..391dbd493 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -359,6 +359,7 @@ Kirigami.ScrollablePage { SsrfButton { id: forgetDCButton text: qsTr("Forget") + enabled: PrefDiveComputer.vendor1 !== "" onClicked: { PrefDiveComputer.vendor1 = "" PrefDiveComputer.vendor2 = "" |