mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
GCodeProcessor -> Added cancel callback
This commit is contained in:
parent
0cfa64e245
commit
573194e059
3 changed files with 16 additions and 7 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue