mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-21 18:31:50 -05:00
frontend_common: Use optional for language default
This commit is contained in:
parent
90e87c40e8
commit
5d4da07943
1 changed files with 2 additions and 1 deletions
|
@ -225,7 +225,8 @@ void QtConfig::ReadPathValues() {
|
|||
UISettings::values.recent_files =
|
||||
QString::fromStdString(ReadStringSetting(std::string("recentFiles")))
|
||||
.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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue