fix: fixed bug when app language was not saved into backup file (#1588)

This commit is contained in:
Mitternacht822
2025-06-05 06:13:37 +04:00
committed by GitHub
parent 7a203868ec
commit a20516850c

View File

@@ -174,11 +174,12 @@ public:
QLocale getAppLanguage()
{
return value("Conf/appLanguage", QLocale()).toLocale();
QString localeStr = m_settings.value("Conf/appLanguage").toString();
return QLocale(localeStr);
};
void setAppLanguage(QLocale locale)
{
setValue("Conf/appLanguage", locale);
setValue("Conf/appLanguage", locale.name());
};
bool isScreenshotsEnabled() const