1
0
Fork 0
forked from suyu/suyu

Merge pull request #2370 from lioncash/qt-warn

yuzu/loading_screen: Resolve runtime Qt string formatting warnings
This commit is contained in:
bunnei 2019-04-09 17:21:18 -04:00 committed by GitHub
commit 71182643f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -192,7 +192,12 @@ void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size
}
// update labels and progress bar
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;