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:
parent
69cead138b
commit
3b8f36ff13
@ -359,6 +359,7 @@ Kirigami.ScrollablePage {
|
||||
SsrfButton {
|
||||
id: forgetDCButton
|
||||
text: qsTr("Forget")
|
||||
enabled: PrefDiveComputer.vendor1 !== ""
|
||||
onClicked: {
|
||||
PrefDiveComputer.vendor1 = ""
|
||||
PrefDiveComputer.vendor2 = ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user