mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-23 05:05:47 +01:00
Merge pull request #8622 from liamwhite/progress
qt: reset progress bar after shader compilation
This commit is contained in:
commit
3bbc1cf64c
@ -147,6 +147,10 @@ void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size
|
|||||||
ui->progress_bar->setMaximum(static_cast<int>(total));
|
ui->progress_bar->setMaximum(static_cast<int>(total));
|
||||||
previous_total = 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;
|
QString estimate;
|
||||||
// If theres a drastic slowdown in the rate, then display an estimate
|
// If theres a drastic slowdown in the rate, then display an estimate
|
||||||
|
Loading…
Reference in New Issue
Block a user