1
mirror of https://github.com/yuzu-emu/yuzu synced 2024-11-07 19:36:43 +01:00

qt: reset progress bar after shader compilation

This commit is contained in:
Liam 2022-07-21 19:47:01 -04:00
parent 5af06d1433
commit 862142213f

View File

@ -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