diff options
Diffstat (limited to 'core/settings/qPref.cpp')
-rw-r--r-- | core/settings/qPref.cpp | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/core/settings/qPref.cpp b/core/settings/qPref.cpp index 90aaa8fea..90aedd925 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,25 +13,21 @@ qPref *qPref::instance() void qPref::loadSync(bool doSync) { - qPrefAnimations::instance()->loadSync(doSync); + if (!doSync) + uiLanguage(NULL); + qPrefCloudStorage::instance()->loadSync(doSync); qPrefDisplay::instance()->loadSync(doSync); qPrefDiveComputer::instance()->loadSync(doSync); qPrefDivePlanner::instance()->loadSync(doSync); // qPrefFaceook does not use disk. + qPrefGeneral::instance()->loadSync(doSync); + qPrefGeocoding::instance()->loadSync(doSync); + qPrefLanguage::instance()->loadSync(doSync); qPrefLocationService::instance()->loadSync(doSync); + qPrefPartialPressureGas::instance()->loadSync(doSync); qPrefProxy::instance()->loadSync(doSync); qPrefTechnicalDetails::instance()->loadSync(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); -} |