mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-01 05:01:59 +08:00
parent
a68e48b454
commit
a06a619228
@ -159,7 +159,7 @@ BundleMap BundleMap::load()
|
|||||||
idx_path = fs::path(cache_dir / (id + ".idx"));
|
idx_path = fs::path(cache_dir / (id + ".idx"));
|
||||||
}
|
}
|
||||||
if (!boost::filesystem::exists(idx_path)) {
|
if (!boost::filesystem::exists(idx_path)) {
|
||||||
BOOST_LOG_TRIVIAL(error) << format("Could not load bundle %1% due to missing index %1%.", id, idx_path.string());
|
BOOST_LOG_TRIVIAL(error) << format("Could not load bundle %1% due to missing index %2%.", id, idx_path.string());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
Slic3r::GUI::Config::Index index;
|
Slic3r::GUI::Config::Index index;
|
||||||
@ -167,7 +167,7 @@ BundleMap BundleMap::load()
|
|||||||
index.load(idx_path);
|
index.load(idx_path);
|
||||||
}
|
}
|
||||||
catch (const std::exception& /* err */) {
|
catch (const std::exception& /* err */) {
|
||||||
BOOST_LOG_TRIVIAL(error) << format("Could not load bundle %1% due to invalid index %1%.", id, idx_path.string());
|
BOOST_LOG_TRIVIAL(error) << format("Could not load bundle %1% due to invalid index %2%.", id, idx_path.string());
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const auto recommended_it = index.recommended();
|
const auto recommended_it = index.recommended();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user