From 73150fe8a99db74c6a7983db26971da015ef4511 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 8 Mar 2025 23:35:03 -0500 Subject: [PATCH] Allow loading news items if banner is missing --- launcher/src/launchercore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launcher/src/launchercore.cpp b/launcher/src/launchercore.cpp index a2af5f5..5e846f2 100755 --- a/launcher/src/launchercore.cpp +++ b/launcher/src/launchercore.cpp @@ -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 { @@ -678,4 +678,4 @@ void LauncherCore::uninhibitSleep() #endif } -#include "moc_launchercore.cpp" \ No newline at end of file +#include "moc_launchercore.cpp"