diff --git a/src/slic3r/Utils/PresetUpdater.cpp b/src/slic3r/Utils/PresetUpdater.cpp index a2b982393..efecd770a 100644 --- a/src/slic3r/Utils/PresetUpdater.cpp +++ b/src/slic3r/Utils/PresetUpdater.cpp @@ -1053,7 +1053,8 @@ void PresetUpdater::priv::sync_printer_config(std::string http_url) } if (need_delete_cache) { - std::string data_dir_str = data_dir(); + boost::system::error_code ec; + boost::filesystem::remove_all(cache_folder, ec); cached_version = curr_version; } }