From 88ecb2aa2e428c2c66d5543b151a8a61c1b9d50b Mon Sep 17 00:00:00 2001 From: "lane.wei" Date: Sun, 1 Jan 2023 14:26:13 +0800 Subject: [PATCH] ENH: save hints.cereal into user directory insteadof cache Change-Id: Ie44f18768e9908946f173bc668a46eb723f19745 --- src/slic3r/GUI/HintNotification.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/HintNotification.cpp b/src/slic3r/GUI/HintNotification.cpp index e64c66caf..786868235 100644 --- a/src/slic3r/GUI/HintNotification.cpp +++ b/src/slic3r/GUI/HintNotification.cpp @@ -67,7 +67,7 @@ namespace { void write_used_binary(const std::vector& 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 @@ -81,7 +81,7 @@ namespace { } void read_used_binary(std::vector& 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;