mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
GCodeProcessor -> Added cancel callback
This commit is contained in:
@@ -787,7 +787,7 @@ void GCode::do_export(Print* print, const char* path, GCodePreviewData* preview_
|
||||
}
|
||||
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
m_processor.process_file(path_tmp);
|
||||
m_processor.process_file(path_tmp, [print]() { print->throw_if_canceled(); });
|
||||
DoExport::update_print_estimated_times_stats(m_processor, print->m_print_statistics);
|
||||
if (result != nullptr)
|
||||
*result = std::move(m_processor.extract_result());
|
||||
|
||||
Reference in New Issue
Block a user