diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-01-03 19:19:27 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-01-03 19:19:27 +0100 |
commit | b3dd1eba2146849cddd7e85b16aa3b8af9d2de23 (patch) | |
tree | 2f7f5dc275257bf4cdecd70063982dfa7d2e15f2 /MultiMC.cpp | |
parent | c35012f1a570e752051c8fcbafe628fc64aa793f (diff) | |
download | MultiMC-b3dd1eba2146849cddd7e85b16aa3b8af9d2de23.tar MultiMC-b3dd1eba2146849cddd7e85b16aa3b8af9d2de23.tar.gz MultiMC-b3dd1eba2146849cddd7e85b16aa3b8af9d2de23.tar.lz MultiMC-b3dd1eba2146849cddd7e85b16aa3b8af9d2de23.tar.xz MultiMC-b3dd1eba2146849cddd7e85b16aa3b8af9d2de23.zip |
Notifications system. Mainly to be used in case the updater breaks.
Diffstat (limited to 'MultiMC.cpp')
-rw-r--r-- | MultiMC.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/MultiMC.cpp b/MultiMC.cpp index 619a7e0a..b105fd66 100644 --- a/MultiMC.cpp +++ b/MultiMC.cpp @@ -26,6 +26,7 @@ #include "logic/JavaUtils.h" #include "logic/updater/UpdateChecker.h" +#include "logic/updater/NotificationChecker.h" #include "pathutils.h" #include "cmdutils.h" @@ -182,6 +183,9 @@ MultiMC::MultiMC(int &argc, char **argv, const QString &data_dir_override) // initialize the updater m_updateChecker.reset(new UpdateChecker()); + // initialize the notification checker + m_notificationChecker.reset(new NotificationChecker()); + // initialize the news checker m_newsChecker.reset(new NewsChecker(NEWS_RSS_URL)); @@ -350,6 +354,7 @@ void MultiMC::initGlobalSettings() // Updates m_settings->registerSetting("UseDevBuilds", false); m_settings->registerSetting("AutoUpdate", true); + m_settings->registerSetting("ShownNotifications", QString()); // FTB m_settings->registerSetting("TrackFTBInstances", false); |