diff options
| author | 2022-07-31 14:46:38 -0700 | |
|---|---|---|
| committer | 2022-07-31 14:46:38 -0700 | |
| commit | 3bbc1cf64c6aeeb50414cfc9f93ba69d36c65c46 (patch) | |
| tree | aa926da945ecd8396b6d31c97d886f2103cfab4f /src | |
| parent | Merge pull request #8692 from DCNick3/write-command-output-on-close (diff) | |
| parent | qt: reset progress bar after shader compilation (diff) | |
| download | yuzu-3bbc1cf64c6aeeb50414cfc9f93ba69d36c65c46.tar.gz yuzu-3bbc1cf64c6aeeb50414cfc9f93ba69d36c65c46.tar.xz yuzu-3bbc1cf64c6aeeb50414cfc9f93ba69d36c65c46.zip | |
Merge pull request #8622 from liamwhite/progress
qt: reset progress bar after shader compilation
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/loading_screen.cpp | 4 |
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 | |||
| 147 | ui->progress_bar->setMaximum(static_cast<int>(total)); | 147 | ui->progress_bar->setMaximum(static_cast<int>(total)); |
| 148 | previous_total = total; | 148 | previous_total = total; |
| 149 | } | 149 | } |
| 150 | // Reset the progress bar ranges if compilation is done | ||
| 151 | if (stage == VideoCore::LoadCallbackStage::Complete) { | ||
| 152 | ui->progress_bar->setRange(0, 0); | ||
| 153 | } | ||
| 150 | 154 | ||
| 151 | QString estimate; | 155 | QString estimate; |
| 152 | // If theres a drastic slowdown in the rate, then display an estimate | 156 | // If theres a drastic slowdown in the rate, then display an estimate |