mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
prefs: git_local_only is not a preference
It's the current state of the app, so it should be a global variable, not a preference. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6e4a253896
commit
ae653703a5
11 changed files with 44 additions and 62 deletions
|
|
@ -16,7 +16,6 @@ class qPrefCloudStorage : public QObject {
|
|||
Q_PROPERTY(QString cloud_storage_pin READ cloud_storage_pin WRITE set_cloud_storage_pin NOTIFY cloud_storage_pin_changed);
|
||||
Q_PROPERTY(int cloud_verification_status READ cloud_verification_status WRITE set_cloud_verification_status NOTIFY cloud_verification_status_changed);
|
||||
Q_PROPERTY(int cloud_timeout READ cloud_timeout WRITE set_cloud_timeout NOTIFY cloud_timeout_changed);
|
||||
Q_PROPERTY(bool git_local_only READ git_local_only WRITE set_git_local_only NOTIFY git_local_only_changed);
|
||||
Q_PROPERTY(bool save_password_local READ save_password_local WRITE set_save_password_local NOTIFY save_password_local_changed);
|
||||
Q_PROPERTY(bool save_userid_local READ save_userid_local WRITE set_save_userid_local NOTIFY save_userid_local_changed);
|
||||
Q_PROPERTY(QString userid READ userid WRITE set_userid NOTIFY userid_changed);
|
||||
|
|
@ -40,7 +39,6 @@ public:
|
|||
static QString cloud_storage_pin() { return prefs.cloud_storage_pin; }
|
||||
static int cloud_timeout() { return prefs.cloud_timeout; }
|
||||
static int cloud_verification_status() { return prefs.cloud_verification_status; }
|
||||
static bool git_local_only() { return prefs.git_local_only; }
|
||||
static bool save_password_local() { return prefs.save_password_local; }
|
||||
static bool save_userid_local() { return prefs.save_userid_local; }
|
||||
static QString userid() { return prefs.userid; }
|
||||
|
|
@ -54,7 +52,6 @@ public slots:
|
|||
static void set_cloud_storage_pin(const QString &value);
|
||||
static void set_cloud_timeout(int value);
|
||||
static void set_cloud_verification_status(int value);
|
||||
static void set_git_local_only(bool value);
|
||||
static void set_save_password_local(bool value);
|
||||
static void set_save_userid_local(bool value);
|
||||
static void set_userid(const QString &value);
|
||||
|
|
@ -68,7 +65,6 @@ signals:
|
|||
void cloud_storage_pin_changed(const QString &value);
|
||||
void cloud_timeout_changed(int value);
|
||||
void cloud_verification_status_changed(int value);
|
||||
void git_local_only_changed(bool value);
|
||||
void save_password_local_changed(bool value);
|
||||
void save_userid_local_changed(bool value);
|
||||
void userid_changed(const QString &value);
|
||||
|
|
@ -83,7 +79,6 @@ private:
|
|||
static void disk_cloud_storage_pin(bool doSync);
|
||||
static void disk_cloud_timeout(bool doSync);
|
||||
static void disk_cloud_verification_status(bool doSync);
|
||||
static void disk_git_local_only(bool doSync);
|
||||
static void disk_save_password_local(bool doSync);
|
||||
static void disk_save_userid_local(bool doSync);
|
||||
static void disk_userid(bool doSync);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue