FIX: disable the switch nozzle if not connected
jira: [STUDIO-10072] Change-Id: I2f705af4cd6f50770c9c0019287855ef90518d18
This commit is contained in:
parent
abfa726162
commit
eae81e9d95
|
@ -398,6 +398,7 @@ void MonitorPanel::update_all()
|
||||||
show_status((int)MONITOR_NO_PRINTER);
|
show_status((int)MONITOR_NO_PRINTER);
|
||||||
m_hms_panel->clear_hms_tag();
|
m_hms_panel->clear_hms_tag();
|
||||||
m_tabpanel->GetBtnsListCtrl()->showNewTag(3, false);
|
m_tabpanel->GetBtnsListCtrl()->showNewTag(3, false);
|
||||||
|
m_status_info_panel->update(obj);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2367,8 +2367,12 @@ bool StatusPanel::is_task_changed(MachineObject* obj)
|
||||||
|
|
||||||
void StatusPanel::update(MachineObject *obj)
|
void StatusPanel::update(MachineObject *obj)
|
||||||
{
|
{
|
||||||
|
if (!obj)
|
||||||
|
{
|
||||||
|
m_nozzle_btn_panel->Disable();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!obj) return;
|
|
||||||
//m_project_task_panel->Freeze();
|
//m_project_task_panel->Freeze();
|
||||||
update_subtask(obj);
|
update_subtask(obj);
|
||||||
//m_project_task_panel->Thaw();
|
//m_project_task_panel->Thaw();
|
||||||
|
|
Loading…
Reference in New Issue