Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all
Unified · Split
| @@ -1072,10 +1072,8 @@ void Application::cleanupBeforeQuit() { · 1071 unmodified lines | ||
| 1072 | 1072 | } |
| 1073 | 1073 | |
| 1074 | 1074 | void Application::emptyLocalCache() { |
| 1075 | − if (auto cache = NetworkAccessManager::getInstance().cache()) { | |
| 1076 | − qDebug() << "DiskCacheEditor::clear(): Clearing disk cache."; | |
| 1077 | − cache->clear(); | |
| 1078 | − } | |
| 1075 | + auto assetClient = DependencyManager::get<AssetClient>(); | |
| 1076 | + QMetaObject::invokeMethod(assetClient.data(), "clearCache", Qt::QueuedConnection); | |
| 1079 | 1077 | } |
| 1080 | 1078 | |
| 1081 | 1079 | Application::~Application() { |