From 10a7765c7b6a1d62cb9ca2406145fd3799f5197c Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 10 Sep 2017 18:21:25 +0200 Subject: Config should now automatically update when changed --- src/settings.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/settings.h') diff --git a/src/settings.h b/src/settings.h index 673158e..0c0cfc7 100644 --- a/src/settings.h +++ b/src/settings.h @@ -24,6 +24,7 @@ #include #include +class QFileSystemWatcher; class Settings { public: @@ -43,8 +44,8 @@ private: QVariant fromList(const toml::Value *list) const; QVariant valueToVariant(const toml::Value *value) const; - toml::Value values; - toml::Value defaults; + toml::Value userValues; + toml::Value defaultValues; QString m_configurationPath; QString m_defaultsPath; @@ -52,6 +53,8 @@ private: QString homeLocation; QString settingsLocation; QString cacheLocation; + + QFileSystemWatcher *m_watcher; }; #endif // SETTINGS_H -- cgit v1.2.1