diff options
author | bunnei <bunneidev@gmail.com> | 2019-04-09 17:21:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 17:21:18 -0400 |
commit | 71182643f76a136d755698f0eb7efef5f7d5d6cc (patch) | |
tree | 5eacdb08565461b9c611b8d9dfaaa5b1e86745fb /src | |
parent | bc7e1498352d99368de3cbf3645e3e6c50f600b8 (diff) | |
parent | b73e433dff282a9e2f7636d34ab298a2eb749274 (diff) |
Merge pull request #2370 from lioncash/qt-warn
yuzu/loading_screen: Resolve runtime Qt string formatting warnings
Diffstat (limited to 'src')
-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 } // update labels and progress bar - ui->stage->setText(stage_translations[stage].arg(value).arg(total)); + if (stage == VideoCore::LoadCallbackStage::Decompile || + stage == VideoCore::LoadCallbackStage::Build) { + ui->stage->setText(stage_translations[stage].arg(value).arg(total)); + } else { + ui->stage->setText(stage_translations[stage]); + } ui->value->setText(estimate); ui->progress_bar->setValue(static_cast<int>(value)); previous_time = now; |