diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-08-08 18:57:38 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-08-08 18:57:38 +0200 |
commit | 71290e208d2decab6042ce40b372e9aabfba7cef (patch) | |
tree | 44c51abbfd9c55c1fddcc4734fa98d505e2810b4 /src/UserSettingsPage.h | |
parent | Breaking: Change secret names and fix bug when storing secrets (diff) | |
download | nheko-71290e208d2decab6042ce40b372e9aabfba7cef.tar.xz |
Enable insecure fallback for secret storage
Diffstat (limited to 'src/UserSettingsPage.h')
-rw-r--r-- | src/UserSettingsPage.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/UserSettingsPage.h b/src/UserSettingsPage.h index 096aab81..84940e47 100644 --- a/src/UserSettingsPage.h +++ b/src/UserSettingsPage.h @@ -8,6 +8,7 @@ #include <QFontDatabase> #include <QFrame> #include <QProcessEnvironment> +#include <QSettings> #include <QSharedPointer> #include <QWidget> @@ -107,6 +108,8 @@ public: static QSharedPointer<UserSettings> instance(); static void initialize(std::optional<QString> profile); + QSettings *qsettings() { return &settings; } + enum class Presence { AutomaticPresence, @@ -316,6 +319,8 @@ private: QString homeserver_; QStringList hiddenTags_; + QSettings settings; + static QSharedPointer<UserSettings> instance_; }; |