refactor: Un-singletonize Paths & Updates (#5092)
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user