FIX: fix crash and blank page while cancel printing at 75 percent

jira: [STUDIO-11861]
Change-Id: I142df41ade73558849183fd245163cb5a7367f9c
(cherry picked from commit ddf4e9bc9f73b5cf7c50e74b66a98716d0f81d16)
This commit is contained in:
xin.zhang
2025-04-25 12:21:35 +08:00
committed by Noisyfox
parent 6b7a9a7402
commit 627f3d77a3
3 changed files with 28 additions and 17 deletions

View File

@@ -3815,7 +3815,7 @@ void StatusPanel::update_cloud_subtask(MachineObject *obj)
if (is_task_changed(obj)) {
obj->set_modeltask(nullptr);
obj->set_slice_info(nullptr);
obj->free_slice_info();
reset_printing_values();
BOOST_LOG_TRIVIAL(info) << "monitor: change to sub task id = " << obj->subtask_->task_id;
if (web_request.IsOk() && web_request.GetState() == wxWebRequest::State_Active) {