Even if there is progress text, still set the progress bar percentage

I don't understand why we wouldn't set the percentage if we displayed text
there as well. This looks much better.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-05-07 12:17:24 -07:00
parent 704c2cb225
commit 0ce59e5205

View file

@ -93,8 +93,8 @@ void DownloadFromDCWidget::updateProgressBar()
ui.progressBar->setFormat(progress_bar_text);
} else {
ui.progressBar->setFormat("%p%");
ui.progressBar->setValue(progress_bar_fraction * 100);
}
ui.progressBar->setValue(progress_bar_fraction * 100);
}
void DownloadFromDCWidget::updateState(states state)