mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Settings update: Clean up save user id local
So, prefs.save_userid_local is being set outside of a preferences set (it's set to true and false while loading the files via xml or git) and because of that I had to bypass a few method calls. When something triggers a preferences change, the application will be notified that the preferences changed, thing that I couldn't do while reading the xml or git because that should be local-only. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
048379cc2b
commit
81d5d82b7b
7 changed files with 36 additions and 35 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include "desktop-widgets/maintab.h"
|
||||
#include "core/display.h"
|
||||
#include "core/membuffer.h"
|
||||
#include "core/subsurface-qt/SettingsObjectWrapper.h"
|
||||
#include <errno.h>
|
||||
#include "core/cloudstorage.h"
|
||||
|
||||
|
|
@ -436,7 +437,8 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton *button)
|
|||
QSettings s;
|
||||
QString qDialogUid = ui.userID->text().toUpper();
|
||||
bool qSaveUid = ui.saveUidLocal->checkState();
|
||||
set_save_userid_local(qSaveUid);
|
||||
SettingsObjectWrapper::instance()->cloud_storage->setSaveUserIdLocal(qSaveUid);
|
||||
|
||||
if (qSaveUid) {
|
||||
QString qSettingUid = s.value("subsurface_webservice_uid").toString();
|
||||
QString qFileUid = QString(prefs.userid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue