aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-17 15:02:11 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-09-17 15:02:11 -0700
commitd03fabd3732adb13e3229f4faa2883f45e15aa21 (patch)
treee336bf7b515704c37c5f95eb4d41b51e1948e56e
parent605400a029160f9089840e65977ecebecba4b2f2 (diff)
downloadsubsurface-d03fabd3732adb13e3229f4faa2883f45e15aa21.tar.gz
DC download: better message at beginning of download
Especially on BT/BLE devices, where there is a longer negotiation phase at the beginning of the download, this seems more user friendly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--desktop-widgets/downloadfromdivecomputer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/desktop-widgets/downloadfromdivecomputer.cpp b/desktop-widgets/downloadfromdivecomputer.cpp
index 2601c6f19..5eaee68b7 100644
--- a/desktop-widgets/downloadfromdivecomputer.cpp
+++ b/desktop-widgets/downloadfromdivecomputer.cpp
@@ -113,7 +113,10 @@ void DownloadFromDCWidget::updateProgressBar()
if (!same_string(progress_bar_text , "")) {
ui.progressBar->setFormat(progress_bar_text);
} else {
- ui.progressBar->setFormat("%p%");
+ if (IS_FP_SAME(progress_bar_fraction, 0.0))
+ ui.progressBar->setFormat(tr("Connecting to dive computer"));
+ else
+ ui.progressBar->setFormat("%p%");
}
ui.progressBar->setValue(lrint(progress_bar_fraction * 100));
free(last_text);