Merge pull request #12283 from t895/language-troubles

frontend_common: Use optional for language default
This commit is contained in:
liamwhite 2023-12-04 22:45:08 -05:00 committed by GitHub
commit 8e0e066c3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -225,7 +225,8 @@ void QtConfig::ReadPathValues() {
UISettings::values.recent_files = UISettings::values.recent_files =
QString::fromStdString(ReadStringSetting(std::string("recentFiles"))) QString::fromStdString(ReadStringSetting(std::string("recentFiles")))
.split(QStringLiteral(", "), Qt::SkipEmptyParts, Qt::CaseSensitive); .split(QStringLiteral(", "), Qt::SkipEmptyParts, Qt::CaseSensitive);
UISettings::values.language = ReadStringSetting(std::string("language"), std::string("")); UISettings::values.language =
ReadStringSetting(std::string("language"), std::make_optional(std::string("")));
EndGroup(); EndGroup();
} }