aboutsummaryrefslogtreecommitdiffstats
path: root/core/settings/qPref.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/settings/qPref.cpp')
-rw-r--r--core/settings/qPref.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/core/settings/qPref.cpp b/core/settings/qPref.cpp
index 36ec4d6c3..e5f662470 100644
--- a/core/settings/qPref.cpp
+++ b/core/settings/qPref.cpp
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-2.0
#include "qPref.h"
#include "qPrefPrivate.h"
-#include "ssrf-version.h"
qPref::qPref(QObject *parent) : QObject(parent)
{
@@ -14,6 +13,9 @@ qPref *qPref::instance()
void qPref::loadSync(bool doSync)
{
+ if (!doSync)
+ uiLanguage(NULL);
+
qPrefAnimations::instance()->loadSync(doSync);
qPrefCloudStorage::instance()->loadSync(doSync);
qPrefDisplay::instance()->loadSync(doSync);
@@ -30,13 +32,3 @@ void qPref::loadSync(bool doSync)
qPrefUnits::instance()->loadSync(doSync);
qPrefUpdateManager::instance()->loadSync(doSync);
}
-
-const QString qPref::canonical_version() const
-{
- return QString(CANONICAL_VERSION_STRING);
-}
-
-const QString qPref::mobile_version() const
-{
- return QString(MOBILE_VERSION_STRING);
-}