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
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue