mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Remove getPaths() usage from NetworkTask
This commit is contained in:
parent
199b22d013
commit
6ad5c63fca
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "common/network/NetworkTask.hpp"
|
||||
|
||||
#include "Application.hpp"
|
||||
#include "common/network/NetworkManager.hpp"
|
||||
#include "common/network/NetworkPrivate.hpp"
|
||||
#include "common/network/NetworkResult.hpp"
|
||||
|
@ -117,7 +118,8 @@ void NetworkTask::logReply()
|
|||
void NetworkTask::writeToCache(const QByteArray &bytes) const
|
||||
{
|
||||
std::ignore = QtConcurrent::run([data = this->data_, bytes] {
|
||||
QFile cachedFile(getPaths()->cacheDirectory() + "/" + data->getHash());
|
||||
QFile cachedFile(getIApp()->getPaths().cacheDirectory() + "/" +
|
||||
data->getHash());
|
||||
|
||||
if (cachedFile.open(QIODevice::WriteOnly))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue