Download from divecomputer: reset progress bar fraction
Otherwise when retrying, the progress bar might already be reset, but its text might still show 100%. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
82d37e7451
commit
d82e200d35
@ -194,6 +194,7 @@ void DownloadFromDCWidget::updateState(states state)
|
||||
else if (state == DOWNLOADING) {
|
||||
timer->start();
|
||||
ui.progressBar->setValue(0);
|
||||
progress_bar_fraction = 0.0;
|
||||
updateProgressBar();
|
||||
ui.progressBar->show();
|
||||
markChildrenAsDisabled();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user