Skip to content

Commit

Permalink
ENH: save hints.cereal into user directory insteadof cache
Browse files Browse the repository at this point in the history
Change-Id: Ie44f18768e9908946f173bc668a46eb723f19745
  • Loading branch information
lanewei120 committed Jan 10, 2023
1 parent f0908f2 commit 88ecb2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/slic3r/GUI/HintNotification.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ namespace {

void write_used_binary(const std::vector<std::string>& ids)
{
boost::nowide::ofstream file((boost::filesystem::path(data_dir()) / "cache" / "hints.cereal").string(), std::ios::binary);
boost::nowide::ofstream file((boost::filesystem::path(data_dir()) / "user" / "hints.cereal").string(), std::ios::binary);
cereal::BinaryOutputArchive archive(file);
HintsCerealData cd{ ids };
try
Expand All @@ -81,7 +81,7 @@ namespace {
}
void read_used_binary(std::vector<std::string>& ids)
{
boost::filesystem::path path(boost::filesystem::path(data_dir()) / "cache" / "hints.cereal");
boost::filesystem::path path(boost::filesystem::path(data_dir()) / "user" / "hints.cereal");
if (!boost::filesystem::exists(path)) {
BOOST_LOG_TRIVIAL(warning) << "Failed to load to hints.cereal. File does not exists. " << path.string();
return;
Expand Down

0 comments on commit 88ecb2a

Please sign in to comment.