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:
parent
1e96a0c8eb
commit
0ee8f90d40
9 changed files with 409 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue