From d03fabd3732adb13e3229f4faa2883f45e15aa21 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 17 Sep 2017 15:02:11 -0700 Subject: 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 --- desktop-widgets/downloadfromdivecomputer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'desktop-widgets/downloadfromdivecomputer.cpp') 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); -- cgit v1.2.3-70-g09d2