Fixed missing conversion from wxString to std::string
This commit is contained in:
parent
b7361200bf
commit
2202138fbd
@ -81,14 +81,14 @@ void BackgroundSlicingProcess::process_fff()
|
|||||||
// Perform the final post-processing of the export path by applying the print statistics over the file name.
|
// Perform the final post-processing of the export path by applying the print statistics over the file name.
|
||||||
std::string export_path = m_fff_print->print_statistics().finalize_output_path(m_export_path);
|
std::string export_path = m_fff_print->print_statistics().finalize_output_path(m_export_path);
|
||||||
if (copy_file(m_temp_output_path, export_path) != 0)
|
if (copy_file(m_temp_output_path, export_path) != 0)
|
||||||
throw std::runtime_error("Copying of the temporary G-code to the output G-code failed");
|
throw std::runtime_error(_utf8(L("Copying of the temporary G-code to the output G-code failed")));
|
||||||
m_print->set_status(95, _(L("Running post-processing scripts")).ToUTF8().data());
|
m_print->set_status(95, _utf8(L("Running post-processing scripts")));
|
||||||
run_post_process_scripts(export_path, m_fff_print->config());
|
run_post_process_scripts(export_path, m_fff_print->config());
|
||||||
m_print->set_status(100, (boost::format(_(L("G-code file exported to %1%")).ToUTF8().data()) % export_path).str());
|
m_print->set_status(100, (boost::format(_utf8(L("G-code file exported to %1%"))) % export_path).str());
|
||||||
} else if (! m_upload_job.empty()) {
|
} else if (! m_upload_job.empty()) {
|
||||||
prepare_upload();
|
prepare_upload();
|
||||||
} else {
|
} else {
|
||||||
m_print->set_status(100, _(L("Slicing complete")).ToUTF8().data());
|
m_print->set_status(100, _utf8(L("Slicing complete")));
|
||||||
}
|
}
|
||||||
this->set_step_done(bspsGCodeFinalize);
|
this->set_step_done(bspsGCodeFinalize);
|
||||||
}
|
}
|
||||||
@ -102,11 +102,11 @@ void BackgroundSlicingProcess::process_sla()
|
|||||||
if (! m_export_path.empty()) {
|
if (! m_export_path.empty()) {
|
||||||
const std::string export_path = m_sla_print->print_statistics().finalize_output_path(m_export_path);
|
const std::string export_path = m_sla_print->print_statistics().finalize_output_path(m_export_path);
|
||||||
m_sla_print->export_raster(export_path);
|
m_sla_print->export_raster(export_path);
|
||||||
m_print->set_status(100, (boost::format(_(L("Masked SLA file exported to %1%")).ToUTF8().data()) % export_path).str());
|
m_print->set_status(100, (boost::format(_utf8(L("Masked SLA file exported to %1%"))) % export_path).str());
|
||||||
} else if (! m_upload_job.empty()) {
|
} else if (! m_upload_job.empty()) {
|
||||||
prepare_upload();
|
prepare_upload();
|
||||||
} else {
|
} else {
|
||||||
m_print->set_status(100, _(L("Slicing complete")).ToUTF8().data());
|
m_print->set_status(100, _utf8(L("Slicing complete")));
|
||||||
}
|
}
|
||||||
this->set_step_done(bspsGCodeFinalize);
|
this->set_step_done(bspsGCodeFinalize);
|
||||||
}
|
}
|
||||||
@ -395,9 +395,9 @@ void BackgroundSlicingProcess::prepare_upload()
|
|||||||
/ boost::filesystem::unique_path("." SLIC3R_APP_KEY ".upload.%%%%-%%%%-%%%%-%%%%");
|
/ boost::filesystem::unique_path("." SLIC3R_APP_KEY ".upload.%%%%-%%%%-%%%%-%%%%");
|
||||||
|
|
||||||
if (m_print == m_fff_print) {
|
if (m_print == m_fff_print) {
|
||||||
m_print->set_status(95, _(L("Running post-processing scripts")).ToUTF8().data());
|
m_print->set_status(95, _utf8(L("Running post-processing scripts")));
|
||||||
if (copy_file(m_temp_output_path, source_path.string()) != 0) {
|
if (copy_file(m_temp_output_path, source_path.string()) != 0) {
|
||||||
throw std::runtime_error(_(L("Copying of the temporary G-code to the output G-code failed")));
|
throw std::runtime_error(_utf8(L("Copying of the temporary G-code to the output G-code failed")));
|
||||||
}
|
}
|
||||||
run_post_process_scripts(source_path.string(), m_fff_print->config());
|
run_post_process_scripts(source_path.string(), m_fff_print->config());
|
||||||
m_upload_job.upload_data.upload_path = m_fff_print->print_statistics().finalize_output_path(m_upload_job.upload_data.upload_path.string());
|
m_upload_job.upload_data.upload_path = m_fff_print->print_statistics().finalize_output_path(m_upload_job.upload_data.upload_path.string());
|
||||||
@ -406,7 +406,7 @@ void BackgroundSlicingProcess::prepare_upload()
|
|||||||
m_sla_print->export_raster(source_path.string(), m_upload_job.upload_data.upload_path.string());
|
m_sla_print->export_raster(source_path.string(), m_upload_job.upload_data.upload_path.string());
|
||||||
}
|
}
|
||||||
|
|
||||||
m_print->set_status(100, (boost::format(_(L("Scheduling upload to `%1%`. See Window -> Print Host Upload Queue")).ToUTF8().data()) % m_upload_job.printhost->get_host()).str());
|
m_print->set_status(100, (boost::format(_utf8(L("Scheduling upload to `%1%`. See Window -> Print Host Upload Queue"))) % m_upload_job.printhost->get_host()).str());
|
||||||
|
|
||||||
m_upload_job.upload_data.source_path = std::move(source_path);
|
m_upload_job.upload_data.source_path = std::move(source_path);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user