FIX: Unhandled unknown exception terminating the application when cali

Jira: 4386
Change-Id: I80ab306882176cfe2453f791992911fb4de19d83
This commit is contained in:
zhimin.zeng 2023-10-07 18:01:18 +08:00 committed by Lane.Wei
parent 9671c37070
commit c70316075f
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,8 @@
namespace Slic3r {
namespace GUI {
std::shared_ptr<PrintJob> CalibUtils::print_job;
static const std::string temp_dir = fs::path(fs::temp_directory_path() / "calib").string();
wxString wxstr_temp_dir = fs::path(fs::temp_directory_path() / "calib").wstring();
static const std::string temp_dir = wxstr_temp_dir.utf8_string();
static const std::string temp_gcode_path = temp_dir + "/temp.gcode";
static const std::string path = temp_dir + "/test.3mf";
static const std::string config_3mf_path = temp_dir + "/test_config.3mf";