MapViewTileProviderBase add cacheDir()

This commit is contained in:
2025-03-18 15:17:14 +03:00
parent 347104d512
commit a0f2d80b4f
7 changed files with 26 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ void MapViewTileCache::tileProviderChanged() {
cache_dir.setPath(cache_root);
auto * provider = parent->downloader->provider;
if (provider) {
cache_dir.setPath(cache_root + "/" + provider->name());
cache_dir.setPath(cache_root + "/" + provider->cacheDir());
}
qDebug() << "[MapViewTileCache] Cache dir" << cache_dir.absolutePath();
if (!cache_dir.exists()) cache_dir.mkpath(".");