summary refs log tree commit diff
path: root/src/UserSettingsPage.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-08-08 18:57:38 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-08-08 18:57:38 +0200
commit71290e208d2decab6042ce40b372e9aabfba7cef (patch)
tree44c51abbfd9c55c1fddcc4734fa98d505e2810b4 /src/UserSettingsPage.h
parentBreaking: Change secret names and fix bug when storing secrets (diff)
downloadnheko-71290e208d2decab6042ce40b372e9aabfba7cef.tar.xz
Enable insecure fallback for secret storage
Diffstat (limited to 'src/UserSettingsPage.h')
-rw-r--r--src/UserSettingsPage.h5
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_;
 };