FIX: update the info ready check
jira: [STUDIO-10771] [Studio-10608] Change-Id: I6af3409ebdc7c173b2cfcd6745854e928753dff1
This commit is contained in:
parent
99ec1acc27
commit
04e45e4a6e
|
@ -3178,7 +3178,11 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!printer_type.empty() && connection_type() == "lan")
|
if (!printer_type.empty() && connection_type() == "lan")
|
||||||
|
{
|
||||||
|
m_full_msg_count++;/* all message package is full at LAN mode*/
|
||||||
print_json.load_compatible_settings(printer_type, "");
|
print_json.load_compatible_settings(printer_type, "");
|
||||||
|
}
|
||||||
|
|
||||||
print_json.diff2all_base_reset(j_pre);
|
print_json.diff2all_base_reset(j_pre);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2574,7 +2574,7 @@ bool StatusPanel::is_task_changed(MachineObject* obj)
|
||||||
|
|
||||||
void StatusPanel::update(MachineObject *obj)
|
void StatusPanel::update(MachineObject *obj)
|
||||||
{
|
{
|
||||||
if (!obj)
|
if (!obj || !obj->is_info_ready())
|
||||||
{
|
{
|
||||||
m_nozzle_btn_panel->Disable();
|
m_nozzle_btn_panel->Disable();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue