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>
This commit is contained in:
Jocke 2018-09-23 07:29:09 +02:00 committed by Jan Mulder
parent 69cead138b
commit 3b8f36ff13

View file

@ -359,6 +359,7 @@ Kirigami.ScrollablePage {
SsrfButton {
id: forgetDCButton
text: qsTr("Forget")
enabled: PrefDiveComputer.vendor1 !== ""
onClicked: {
PrefDiveComputer.vendor1 = ""
PrefDiveComputer.vendor2 = ""