FIX:Fix the crash that occurred when importing G-code file

Jira:STUDIO-13408

(cherry picked from commit 3810f4edfe086b9500860e59baf35e5568b56977)
This commit is contained in:
weizhen.xie authored and Noisyfox committed 2025-09-30 11:02:32 +08:00
1 parent 55e3bd1a4d
commit 04f0b96029
7 files changed
+27 -1

No files matched your search

+3
View File
@@ -847,6 +847,9 @@ class Print;
const std::vector<std::set<int>>& unprintable_filament_types );
void apply_config(const PrintConfig& config);
void set_print(Print* print) { m_print = print; }
DynamicConfig export_config_for_render() const;
void enable_stealth_time_estimator(bool enabled);
bool is_stealth_time_estimator_enabled() const {
return m_time_processor.machines[static_cast<size_t>(PrintEstimatedStatistics::ETimeMode::Stealth)].enabled;