Mobile: remove all related data when forgetting DCs
We need to delete all related data when forgetting dive computers or we will have an issue if we connect a DC from the same vendor but of a different model. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
c31d517b8f
commit
b29f6ef2c0
@ -410,11 +410,11 @@ Kirigami.ScrollablePage {
|
||||
text: qsTr("Forget")
|
||||
enabled: PrefDiveComputer.vendor1 !== ""
|
||||
onClicked: {
|
||||
PrefDiveComputer.vendor1 = ""
|
||||
PrefDiveComputer.vendor2 = ""
|
||||
PrefDiveComputer.vendor3 = ""
|
||||
PrefDiveComputer.vendor4 = ""
|
||||
PrefDiveComputer.vendor = ""
|
||||
PrefDiveComputer.vendor1 = PrefDiveComputer.product1 = PrefDiveComputer.device1 = ""
|
||||
PrefDiveComputer.vendor2 = PrefDiveComputer.product2 = PrefDiveComputer.device2 = ""
|
||||
PrefDiveComputer.vendor3 = PrefDiveComputer.product3 = PrefDiveComputer.device3 = ""
|
||||
PrefDiveComputer.vendor4 = PrefDiveComputer.product4 = PrefDiveComputer.device4 = ""
|
||||
PrefDiveComputer.vendor = PrefDiveComputer.product = PrefDiveComputer.device = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user