summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-07-31 23:46:38 +0200
committerGitHub <noreply@github.com>2022-07-31 23:46:38 +0200
commit3bbc1cf64c6aeeb50414cfc9f93ba69d36c65c46 (patch)
treeaa926da945ecd8396b6d31c97d886f2103cfab4f /src
parentMerge pull request #8692 from DCNick3/write-command-output-on-close (diff)
parentqt: reset progress bar after shader compilation (diff)
downloadyuzu-3bbc1cf64c6aeeb50414cfc9f93ba69d36c65c46.tar
yuzu-3bbc1cf64c6aeeb50414cfc9f93ba69d36c65c46.tar.gz
yuzu-3bbc1cf64c6aeeb50414cfc9f93ba69d36c65c46.tar.bz2
yuzu-3bbc1cf64c6aeeb50414cfc9f93ba69d36c65c46.tar.lz
yuzu-3bbc1cf64c6aeeb50414cfc9f93ba69d36c65c46.tar.xz
yuzu-3bbc1cf64c6aeeb50414cfc9f93ba69d36c65c46.tar.zst
yuzu-3bbc1cf64c6aeeb50414cfc9f93ba69d36c65c46.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/loading_screen.cpp4
1 files changed, 4 insertions, 0 deletions
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<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