mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 08:10:11 +00:00
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