From 862142213f576669568fac9ad8f406f8b2763ac9 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 21 Jul 2022 19:47:01 -0400 Subject: qt: reset progress bar after shader compilation --- src/yuzu/loading_screen.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/yuzu/loading_screen.cpp b/src/yuzu/loading_screen.cpp index e273744fd..e263a07a7 100644 --- a/src/yuzu/loading_screen.cpp +++ b/src/yuzu/loading_screen.cpp @@ -147,6 +147,10 @@ void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size ui->progress_bar->setMaximum(static_cast(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 -- cgit v1.2.3