mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
disable requests to resolve link info when its disabled
This commit is contained in:
parent
fac1a6d00c
commit
a2fa1bad6b
1 changed files with 4 additions and 1 deletions
|
@ -12,9 +12,12 @@ namespace chatterino {
|
|||
void LinkResolver::getLinkInfo(
|
||||
const QString url, std::function<void(QString, Link)> 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);
|
||||
|
|
Loading…
Reference in a new issue