Merge pull request #8622 from liamwhite/progress

qt: reset progress bar after shader compilation
merge-requests/60/head
bunnei 2022-07-31 14:46:38 +07:00 committed by GitHub
commit 3bbc1cf64c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

@ -147,6 +147,10 @@ void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size
ui->progress_bar->setMaximum(static_cast<int>(total));
previous_total = total;
}
// Reset the progress bar ranges if compilation is done
if (stage == VideoCore::LoadCallbackStage::Complete) {
ui->progress_bar->setRange(0, 0);
}
QString estimate;
// If theres a drastic slowdown in the rate, then display an estimate