mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
fix(ProgressDialog): allow finished tasks to be re-displayed once restarted
Cherry-picked from libcurl (lmao) Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
8a68c625fb
commit
b9fa4ffc00
1 changed files with 1 additions and 4 deletions
|
|
@ -252,10 +252,7 @@ void ProgressDialog::changeStepProgress(TaskStepProgress const& task_progress)
|
||||||
task_bar->setValue(mapped_current);
|
task_bar->setValue(mapped_current);
|
||||||
task_bar->setStatus(task_progress.status);
|
task_bar->setStatus(task_progress.status);
|
||||||
task_bar->setDetails(task_progress.details);
|
task_bar->setDetails(task_progress.details);
|
||||||
|
task_bar->setVisible(!task_progress.isDone());
|
||||||
if (task_progress.isDone()) {
|
|
||||||
task_bar->setVisible(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProgressDialog::changeProgress(qint64 current, qint64 total)
|
void ProgressDialog::changeProgress(qint64 current, qint64 total)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue