Added a couple comments

This commit is contained in:
Atlante45 2015-09-15 15:41:34 +02:00
parent 9678e70444
commit dd0244b15d
2 changed files with 2 additions and 0 deletions

View file

@ -50,6 +50,7 @@ void AssetClient::init() {
QMetaObject::invokeMethod(this, "init", Qt::BlockingQueuedConnection);
}
// Setup disk cache if not already
QNetworkAccessManager& networkAccessManager = NetworkAccessManager::getInstance();
if (!networkAccessManager.cache()) {
QString cachePath = QStandardPaths::writableLocation(QStandardPaths::DataLocation);

View file

@ -40,6 +40,7 @@ void AssetRequest::start() {
return;
}
// Try to load from cache
if (loadFromCache()) {
_info.hash = _hash;
_info.size = _data.size();