mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-02 23:20:20 +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 {
|
SsrfButton {
|
||||||
id: forgetDCButton
|
id: forgetDCButton
|
||||||
text: qsTr("Forget")
|
text: qsTr("Forget")
|
||||||
|
enabled: PrefDiveComputer.vendor1 !== ""
|
||||||
onClicked: {
|
onClicked: {
|
||||||
PrefDiveComputer.vendor1 = ""
|
PrefDiveComputer.vendor1 = ""
|
||||||
PrefDiveComputer.vendor2 = ""
|
PrefDiveComputer.vendor2 = ""
|
||||||
|
|
Loading…
Reference in a new issue