mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
renamed setting
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
634612ae81
commit
76cc8ce043
3 changed files with 4 additions and 4 deletions
|
|
@ -530,7 +530,7 @@ Language * TranslationsModel::findLanguage(const QString& key)
|
|||
|
||||
void TranslationsModel::setUseSystemLocale(bool useSystemLocale)
|
||||
{
|
||||
APPLICATION->settings()->set("UseSystemLocales", useSystemLocale);
|
||||
APPLICATION->settings()->set("UseSystemLocale", useSystemLocale);
|
||||
QLocale::setDefault(QLocale(useSystemLocale ? QString::fromStdString(std::locale().name()) : defaultLangCode));
|
||||
}
|
||||
|
||||
|
|
@ -566,7 +566,7 @@ bool TranslationsModel::selectLanguage(QString key)
|
|||
* This function is not reentrant.
|
||||
*/
|
||||
QLocale::setDefault(
|
||||
QLocale(APPLICATION->settings()->get("UseSystemLocales").toBool() ? QString::fromStdString(std::locale().name()) : langCode));
|
||||
QLocale(APPLICATION->settings()->get("UseSystemLocale").toBool() ? QString::fromStdString(std::locale().name()) : langCode));
|
||||
|
||||
|
||||
// if it's the default UI language, finish
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue