Browse Source
Merge pull request #2370 from lioncash/qt-warn
yuzu/loading_screen: Resolve runtime Qt string formatting warnings
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
1 deletions
-
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; |
|
|
|
|