yuzu/configuration/configure_system: Specify string conversions explicitly
Allows the system config code to build successfully with implicit string conversions disabled.
This commit is contained in:
parent
428d8098a7
commit
d9c4d64ed5
@ -66,8 +66,9 @@ void ConfigureSystem::setConfiguration() {
|
|||||||
ui->rng_seed_checkbox->setChecked(Settings::values.rng_seed.has_value());
|
ui->rng_seed_checkbox->setChecked(Settings::values.rng_seed.has_value());
|
||||||
ui->rng_seed_edit->setEnabled(Settings::values.rng_seed.has_value());
|
ui->rng_seed_edit->setEnabled(Settings::values.rng_seed.has_value());
|
||||||
|
|
||||||
const auto rng_seed =
|
const auto rng_seed = QStringLiteral("%1")
|
||||||
QString("%1").arg(Settings::values.rng_seed.value_or(0), 8, 16, QLatin1Char{'0'}).toUpper();
|
.arg(Settings::values.rng_seed.value_or(0), 8, 16, QLatin1Char{'0'})
|
||||||
|
.toUpper();
|
||||||
ui->rng_seed_edit->setText(rng_seed);
|
ui->rng_seed_edit->setText(rng_seed);
|
||||||
|
|
||||||
ui->custom_rtc_checkbox->setChecked(Settings::values.custom_rtc.has_value());
|
ui->custom_rtc_checkbox->setChecked(Settings::values.custom_rtc.has_value());
|
||||||
|
Loading…
Reference in New Issue
Block a user