fix: fixed bug when app language was not saved into backup file (#1588)
This commit is contained in:
parent
7a203868ec
commit
a20516850c
1 changed files with 3 additions and 2 deletions
|
@ -174,11 +174,12 @@ public:
|
||||||
|
|
||||||
QLocale getAppLanguage()
|
QLocale getAppLanguage()
|
||||||
{
|
{
|
||||||
return value("Conf/appLanguage", QLocale()).toLocale();
|
QString localeStr = m_settings.value("Conf/appLanguage").toString();
|
||||||
|
return QLocale(localeStr);
|
||||||
};
|
};
|
||||||
void setAppLanguage(QLocale locale)
|
void setAppLanguage(QLocale locale)
|
||||||
{
|
{
|
||||||
setValue("Conf/appLanguage", locale);
|
setValue("Conf/appLanguage", locale.name());
|
||||||
};
|
};
|
||||||
|
|
||||||
bool isScreenshotsEnabled() const
|
bool isScreenshotsEnabled() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue