diff options
Diffstat (limited to 'core/subsurface-qt/SettingsObjectWrapper.cpp')
-rw-r--r-- | core/subsurface-qt/SettingsObjectWrapper.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/core/subsurface-qt/SettingsObjectWrapper.cpp b/core/subsurface-qt/SettingsObjectWrapper.cpp index b0e552bf2..fe012c9b9 100644 --- a/core/subsurface-qt/SettingsObjectWrapper.cpp +++ b/core/subsurface-qt/SettingsObjectWrapper.cpp @@ -811,6 +811,17 @@ void CloudStorageSettings::setBackgroundSync(bool value) emit backgroundSyncChanged(value); } +void CloudStorageSettings::setSaveUserIdLocal(short int value) +{ + prefs.save_userid_local = value; + emit saveUserIdLocalChanged(value); +} + +short int CloudStorageSettings::saveUserIdLocal() const +{ + return prefs.save_userid_local; +} + void CloudStorageSettings::setBaseUrl(const QString& value) { free((void*)prefs.cloud_base_url); @@ -1621,17 +1632,6 @@ QObject(parent), { } -void SettingsObjectWrapper::setSaveUserIdLocal(short int value) -{ - Q_UNUSED(value); - //TODO: Find where this is stored on the preferences. -} - -short int SettingsObjectWrapper::saveUserIdLocal() const -{ - return prefs.save_userid_local; -} - SettingsObjectWrapper* SettingsObjectWrapper::instance() { static SettingsObjectWrapper settings; |