diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-09-17 15:02:11 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-09-17 15:02:11 -0700 |
commit | d03fabd3732adb13e3229f4faa2883f45e15aa21 (patch) | |
tree | e336bf7b515704c37c5f95eb4d41b51e1948e56e | |
parent | 605400a029160f9089840e65977ecebecba4b2f2 (diff) | |
download | subsurface-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.cpp | 5 |
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); |