FIX: update the info ready check

jira: [STUDIO-10771] [Studio-10608]
Change-Id: I6af3409ebdc7c173b2cfcd6745854e928753dff1
This commit is contained in:
xin.zhang 2025-03-10 15:41:37 +08:00 committed by lane.wei
parent 99ec1acc27
commit 04e45e4a6e
2 changed files with 5 additions and 1 deletions

View File

@ -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);
} }
} }

View File

@ -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;