Added a system to load news from MultiMC.org's RSS
Currently it doesn't show it anywhere in the UI. That's next.
This commit is contained in:
1 parent
1e96a0c8eb
commit
0ee8f90d40
9 files changed
+409
-1
No files matched your search
@@ -76,6 +76,8 @@
|
||||
|
||||
#include "logic/updater/DownloadUpdateTask.h"
|
||||
|
||||
#include "logic/news/NewsChecker.h"
|
||||
|
||||
#include "logic/net/URLConstants.h"
|
||||
|
||||
#include "logic/BaseInstance.h"
|
||||
@@ -243,6 +245,8 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
||||
MMC->lwjgllist()->loadList();
|
||||
}
|
||||
|
||||
MMC->newsChecker()->reloadNews();
|
||||
|
||||
// set up the updater object.
|
||||
auto updater = MMC->updateChecker();
|
||||
QObject::connect(updater.get(), &UpdateChecker::updateAvailable, this, &MainWindow::updateAvailable);
|
||||
|
||||
Reference in new issue
Block a user