summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-04-09 23:21:18 +0200
committerGitHub <noreply@github.com>2019-04-09 23:21:18 +0200
commit71182643f76a136d755698f0eb7efef5f7d5d6cc (patch)
tree5eacdb08565461b9c611b8d9dfaaa5b1e86745fb
parentMerge pull request #2369 from FernandoS27/mip-align (diff)
parentyuzu/loading_screen: Resolve runtime Qt string formatting warnings (diff)
downloadyuzu-71182643f76a136d755698f0eb7efef5f7d5d6cc.tar
yuzu-71182643f76a136d755698f0eb7efef5f7d5d6cc.tar.gz
yuzu-71182643f76a136d755698f0eb7efef5f7d5d6cc.tar.bz2
yuzu-71182643f76a136d755698f0eb7efef5f7d5d6cc.tar.lz
yuzu-71182643f76a136d755698f0eb7efef5f7d5d6cc.tar.xz
yuzu-71182643f76a136d755698f0eb7efef5f7d5d6cc.tar.zst
yuzu-71182643f76a136d755698f0eb7efef5f7d5d6cc.zip
-rw-r--r--src/yuzu/loading_screen.cpp7
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;