1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 11:47:46 +00:00

Allow loading news items if banner is missing

This commit is contained in:
Joshua Goins 2025-03-08 23:35:03 -05:00
parent 4214b769df
commit 73150fe8a9

View file

@ -536,7 +536,7 @@ QCoro::Task<> LauncherCore::fetchNews()
const auto bannerDocument = QJsonDocument::fromJson(bannerReply->readAll());
const auto headline = new Headline(this);
if (document.isEmpty() || bannerDocument.isEmpty()) {
if (document.isEmpty() && bannerDocument.isEmpty()) {
headline->failedToLoad = true;
} else {
const auto parseNews = [](QJsonObject object) -> News {