diff options
author | Jocke <j.bygdell@gmail.com> | 2018-10-09 19:11:10 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-09 21:04:23 -0700 |
commit | 3ce019cf1ae53a29baab1ebd3c8d72f0bcdfa370 (patch) | |
tree | 2e225fed19a666dc0c6ed433d5906dfca8dfd74c /mobile-widgets/qml | |
parent | e7fd50113facfe9d483ac02e1c8ac00a699fa03a (diff) | |
download | subsurface-3ce019cf1ae53a29baab1ebd3c8d72f0bcdfa370.tar.gz |
Mobile/rememberDCs: remove duplicated code
The code to disable a quick button has moved to the DC matching logic,
in order to inactivate the correct button also for USB DCs.
Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r-- | mobile-widgets/qml/DownloadFromDiveComputer.qml | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index a2b6e0c77..b5696c7da 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -224,10 +224,6 @@ Kirigami.Page { text: PrefDiveComputer.vendor1 + " - " + PrefDiveComputer.product1 onClicked: { // update comboboxes - dc1.enabled = false - dc2.enabled = true - dc3.enabled = true - dc4.enabled = true rememberedDCsGrid.setDC(PrefDiveComputer.vendor1, PrefDiveComputer.product1, PrefDiveComputer.device1) } } @@ -237,10 +233,6 @@ Kirigami.Page { text: PrefDiveComputer.vendor2 + " - " + PrefDiveComputer.product2 onClicked: { // update comboboxes - dc1.enabled = true - dc2.enabled = false - dc3.enabled = true - dc4.enabled = true rememberedDCsGrid.setDC(PrefDiveComputer.vendor2, PrefDiveComputer.product2, PrefDiveComputer.device2) } } @@ -250,10 +242,6 @@ Kirigami.Page { text: PrefDiveComputer.vendor3 + " - " + PrefDiveComputer.product3 onClicked: { // update comboboxes - dc1.enabled = true - dc2.enabled = true - dc3.enabled = false - dc4.enabled = true rememberedDCsGrid.setDC(PrefDiveComputer.vendor3, PrefDiveComputer.product3, PrefDiveComputer.device3) } } @@ -263,10 +251,6 @@ Kirigami.Page { text: PrefDiveComputer.vendor4 + " - " + PrefDiveComputer.product4 onClicked: { // update comboboxes - dc1.enabled = true - dc2.enabled = true - dc3.enabled = true - dc4.enabled = false rememberedDCsGrid.setDC(PrefDiveComputer.vendor4, PrefDiveComputer.product4, PrefDiveComputer.device4) } } |