mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
605400a029
commit
d03fabd373
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue