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,6 +113,9 @@ void DownloadFromDCWidget::updateProgressBar()
if (!same_string(progress_bar_text , "")) {
ui.progressBar->setFormat(progress_bar_text);
} else {
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));