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>
This commit is contained in:
Dirk Hohndel 2017-09-17 15:02:11 -07:00
parent 605400a029
commit d03fabd373

View file

@ -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);