FIX: disable the switch nozzle if not connected

jira: [STUDIO-10072]
Change-Id: I2f705af4cd6f50770c9c0019287855ef90518d18
(cherry picked from commit eae81e9d95059d6fef7dc0ee9e7c38f57e57e902)
This commit is contained in:
xin.zhang
2025-09-12 17:25:48 +08:00
committed by Noisyfox
parent b2856b44b0
commit 229c87df16
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -383,6 +383,7 @@ void MonitorPanel::update_all()
show_status((int)MONITOR_NO_PRINTER);
m_hms_panel->clear_hms_tag();
m_tabpanel->GetBtnsListCtrl()->showNewTag(3, false);
m_status_info_panel->update(obj);
return;
}
+6 -1
View File
@@ -2394,7 +2394,12 @@ bool StatusPanel::is_task_changed(MachineObject* obj)
void StatusPanel::update(MachineObject *obj)
{
if (!obj) return;
if (!obj)
{
m_nozzle_btn_panel->Disable();
return;
}
//m_project_task_panel->Freeze();
update_subtask(obj);
//m_project_task_panel->Thaw();