mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -359,6 +359,7 @@ Kirigami.ScrollablePage {
|
|||
SsrfButton {
|
||||
id: forgetDCButton
|
||||
text: qsTr("Forget")
|
||||
enabled: PrefDiveComputer.vendor1 !== ""
|
||||
onClicked: {
|
||||
PrefDiveComputer.vendor1 = ""
|
||||
PrefDiveComputer.vendor2 = ""
|
||||
|
|
Loading…
Reference in a new issue