fixed bug when app language was not saved into backup file

This commit is contained in:
Mitternacht822 2025-05-15 13:42:53 +04:00
parent b457ef9a3f
commit c89988f278

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