mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
parent
91e320edf8
commit
d82c647edd
2 changed files with 0 additions and 4 deletions
|
@ -24,7 +24,6 @@ void BTTVEmotes::loadGlobalEmotes()
|
||||||
NetworkRequest request(url);
|
NetworkRequest request(url);
|
||||||
request.setCaller(QThread::currentThread());
|
request.setCaller(QThread::currentThread());
|
||||||
request.setTimeout(30000);
|
request.setTimeout(30000);
|
||||||
request.setUseQuickLoadCache(true);
|
|
||||||
request.onSuccess([this](auto result) {
|
request.onSuccess([this](auto result) {
|
||||||
auto root = result.parseJson();
|
auto root = result.parseJson();
|
||||||
auto emotes = root.value("emotes").toArray();
|
auto emotes = root.value("emotes").toArray();
|
||||||
|
@ -68,7 +67,6 @@ void BTTVEmotes::loadChannelEmotes(const QString &channelName, std::weak_ptr<Emo
|
||||||
NetworkRequest request(url);
|
NetworkRequest request(url);
|
||||||
request.setCaller(QThread::currentThread());
|
request.setCaller(QThread::currentThread());
|
||||||
request.setTimeout(3000);
|
request.setTimeout(3000);
|
||||||
request.setUseQuickLoadCache(true);
|
|
||||||
request.onSuccess([this, channelName, _map](auto result) {
|
request.onSuccess([this, channelName, _map](auto result) {
|
||||||
auto rootNode = result.parseJson();
|
auto rootNode = result.parseJson();
|
||||||
auto map = _map.lock();
|
auto map = _map.lock();
|
||||||
|
|
|
@ -49,7 +49,6 @@ void FFZEmotes::loadGlobalEmotes()
|
||||||
NetworkRequest request(url);
|
NetworkRequest request(url);
|
||||||
request.setCaller(QThread::currentThread());
|
request.setCaller(QThread::currentThread());
|
||||||
request.setTimeout(30000);
|
request.setTimeout(30000);
|
||||||
request.setUseQuickLoadCache(true);
|
|
||||||
request.onSuccess([this](auto result) {
|
request.onSuccess([this](auto result) {
|
||||||
auto root = result.parseJson();
|
auto root = result.parseJson();
|
||||||
auto sets = root.value("sets").toObject();
|
auto sets = root.value("sets").toObject();
|
||||||
|
@ -92,7 +91,6 @@ void FFZEmotes::loadChannelEmotes(const QString &channelName, std::weak_ptr<Emot
|
||||||
NetworkRequest request(url);
|
NetworkRequest request(url);
|
||||||
request.setCaller(QThread::currentThread());
|
request.setCaller(QThread::currentThread());
|
||||||
request.setTimeout(3000);
|
request.setTimeout(3000);
|
||||||
request.setUseQuickLoadCache(true);
|
|
||||||
request.onSuccess([this, channelName, _map](auto result) {
|
request.onSuccess([this, channelName, _map](auto result) {
|
||||||
auto rootNode = result.parseJson();
|
auto rootNode = result.parseJson();
|
||||||
auto map = _map.lock();
|
auto map = _map.lock();
|
||||||
|
|
Loading…
Reference in a new issue