ENH: add log_dir at the beginning of init

JIRA: STUDIO-4895
Change-Id: I1eb1c4cee0383a01a6bacd2a70d7989bfb59006a
This commit is contained in:
lane.wei
2023-10-24 09:49:06 +08:00
committed by Lane.Wei
parent 1a8bd061d1
commit d864c0decf
4 changed files with 12 additions and 10 deletions

View File

@@ -2892,14 +2892,16 @@ __retry:
if (create_network_agent) {
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(", create network agent...");
m_agent = new Slic3r::NetworkAgent();
//std::string data_dir = wxStandardPaths::Get().GetUserDataDir().ToUTF8().data();
std::string data_directory = data_dir();
m_agent = new Slic3r::NetworkAgent(data_directory);
if (!m_device_manager)
m_device_manager = new Slic3r::DeviceManager(m_agent);
else
m_device_manager->set_agent(m_agent);
//std::string data_dir = wxStandardPaths::Get().GetUserDataDir().ToUTF8().data();
std::string data_directory = data_dir();
//BBS set config dir
if (m_agent) {