mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Remove getPaths() usage from NetworkPrivate
This commit is contained in:
parent
8928f59db9
commit
7c2ec8ce39
1 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "common/network/NetworkPrivate.hpp"
|
||||
|
||||
#include "Application.hpp"
|
||||
#include "common/network/NetworkManager.hpp"
|
||||
#include "common/network/NetworkResult.hpp"
|
||||
#include "common/network/NetworkTask.hpp"
|
||||
|
@ -57,7 +58,8 @@ void loadUncached(std::shared_ptr<NetworkData> &&data)
|
|||
|
||||
void loadCached(std::shared_ptr<NetworkData> &&data)
|
||||
{
|
||||
QFile cachedFile(getPaths()->cacheDirectory() + "/" + data->getHash());
|
||||
QFile cachedFile(getIApp()->getPaths().cacheDirectory() + "/" +
|
||||
data->getHash());
|
||||
|
||||
if (!cachedFile.exists() || !cachedFile.open(QIODevice::ReadOnly))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue