mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-28 06:16:23 -05:00
Merge pull request #2370 from lioncash/qt-warn
yuzu/loading_screen: Resolve runtime Qt string formatting warnings
This commit is contained in:
commit
71182643f7
1 changed files with 6 additions and 1 deletions
|
@ -192,7 +192,12 @@ void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size
|
||||||
}
|
}
|
||||||
|
|
||||||
// update labels and progress bar
|
// update labels and progress bar
|
||||||
|
if (stage == VideoCore::LoadCallbackStage::Decompile ||
|
||||||
|
stage == VideoCore::LoadCallbackStage::Build) {
|
||||||
ui->stage->setText(stage_translations[stage].arg(value).arg(total));
|
ui->stage->setText(stage_translations[stage].arg(value).arg(total));
|
||||||
|
} else {
|
||||||
|
ui->stage->setText(stage_translations[stage]);
|
||||||
|
}
|
||||||
ui->value->setText(estimate);
|
ui->value->setText(estimate);
|
||||||
ui->progress_bar->setValue(static_cast<int>(value));
|
ui->progress_bar->setValue(static_cast<int>(value));
|
||||||
previous_time = now;
|
previous_time = now;
|
||||||
|
|
Loading…
Reference in a new issue