diff options
| author | 2019-04-09 17:21:18 -0400 | |
|---|---|---|
| committer | 2019-04-09 17:21:18 -0400 | |
| commit | 71182643f76a136d755698f0eb7efef5f7d5d6cc (patch) | |
| tree | 5eacdb08565461b9c611b8d9dfaaa5b1e86745fb /src | |
| parent | Merge pull request #2369 from FernandoS27/mip-align (diff) | |
| parent | yuzu/loading_screen: Resolve runtime Qt string formatting warnings (diff) | |
| download | yuzu-71182643f76a136d755698f0eb7efef5f7d5d6cc.tar.gz yuzu-71182643f76a136d755698f0eb7efef5f7d5d6cc.tar.xz yuzu-71182643f76a136d755698f0eb7efef5f7d5d6cc.zip | |
Merge pull request #2370 from lioncash/qt-warn
yuzu/loading_screen: Resolve runtime Qt string formatting warnings
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/loading_screen.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/yuzu/loading_screen.cpp b/src/yuzu/loading_screen.cpp index 86f6d0165..4e2d988cd 100644 --- a/src/yuzu/loading_screen.cpp +++ b/src/yuzu/loading_screen.cpp | |||
| @@ -192,7 +192,12 @@ void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size | |||
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | // update labels and progress bar | 194 | // update labels and progress bar |
| 195 | ui->stage->setText(stage_translations[stage].arg(value).arg(total)); | 195 | if (stage == VideoCore::LoadCallbackStage::Decompile || |
| 196 | stage == VideoCore::LoadCallbackStage::Build) { | ||
| 197 | ui->stage->setText(stage_translations[stage].arg(value).arg(total)); | ||
| 198 | } else { | ||
| 199 | ui->stage->setText(stage_translations[stage]); | ||
| 200 | } | ||
| 196 | ui->value->setText(estimate); | 201 | ui->value->setText(estimate); |
| 197 | ui->progress_bar->setValue(static_cast<int>(value)); | 202 | ui->progress_bar->setValue(static_cast<int>(value)); |
| 198 | previous_time = now; | 203 | previous_time = now; |