diff --git a/src/providers/LinkResolver.cpp b/src/providers/LinkResolver.cpp index d7cc3a1f5..33848e019 100644 --- a/src/providers/LinkResolver.cpp +++ b/src/providers/LinkResolver.cpp @@ -12,9 +12,12 @@ namespace chatterino { void LinkResolver::getLinkInfo( const QString url, std::function successCallback) { + if (!getSettings()->linkInfoTooltip) { + successCallback("No link info loaded", Link(Link::Url, url)); + return; + } QString requestUrl("https://braize.pajlada.com/chatterino/link_resolver/" + QUrl::toPercentEncoding(url, "", "/:")); - // Uncomment to test crashes // QTimer::singleShot(3000, [=]() { NetworkRequest request(requestUrl);