mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:11:50 +08:00
FIX:fixed send print will crash when resources path is chinese path
Change-Id: Ie4a5161f853dca691bd69e5695720d99148a0134
This commit is contained in:
parent
5666f8fce9
commit
625978355a
@ -33,6 +33,13 @@ SendJob::SendJob(std::shared_ptr<ProgressIndicator> pri, Plater* plater, std::st
|
||||
void SendJob::prepare()
|
||||
{
|
||||
m_plater->get_print_job_data(&job_data);
|
||||
if (&job_data) {
|
||||
std::string temp_file = Slic3r::resources_dir() + "/check_access_code.txt";
|
||||
auto check_access_code_path = temp_file.c_str();
|
||||
BOOST_LOG_TRIVIAL(trace) << "sned_job: check_access_code_path = " << check_access_code_path;
|
||||
job_data._temp_path = fs::path(check_access_code_path);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void SendJob::on_exception(const std::exception_ptr &eptr)
|
||||
|
@ -6558,8 +6558,6 @@ void Plater::get_print_job_data(PrintPrepareData* data)
|
||||
data->plate_idx = p->m_print_job_data.plate_idx;
|
||||
data->_3mf_path = p->m_print_job_data._3mf_path;
|
||||
data->_3mf_config_path = p->m_print_job_data._3mf_config_path;
|
||||
std::string temp_file = Slic3r::resources_dir() + "/check_access_code.txt";
|
||||
data->_temp_path = encode_path(temp_file.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user