Don't try to check for notifications if we don't have a URL for it
This commit is contained in:
parent
df9f9a34ef
commit
71e1410b9f
@ -31,6 +31,13 @@ QList<NotificationChecker::NotificationEntry> NotificationChecker::notificationE
|
||||
|
||||
void NotificationChecker::checkForNotifications()
|
||||
{
|
||||
if (!m_notificationsUrl.isValid())
|
||||
{
|
||||
QLOG_ERROR() << "Failed to check for notifications. No notifications URL set."
|
||||
<< "If you'd like to use MultiMC's notification system, please pass the "
|
||||
"URL to CMake at compile time.";
|
||||
return;
|
||||
}
|
||||
if (m_checkJob)
|
||||
{
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user