FIX: The warning is not translated

that nozzle diameter is not supported in old firmware
Jira: 4675

Change-Id: I6045dd33f4821ee7dd11bd8782f8c6f9b2a4010e
This commit is contained in:
zhimin.zeng 2023-10-08 20:46:37 +08:00 committed by Lane.Wei
parent ce40bb2ecf
commit b293346272

View file

@ -4151,7 +4151,7 @@ int MachineObject::parse_json(std::string payload)
std::string reason = jj["reason"].get<std::string>();
GUI::wxGetApp().CallAfter([cali_mode, reason] {
wxString info = "";
if (reason == "invalid nozzle_diameter") {
if (reason == "invalid nozzle_diameter" || reason == "nozzle_diameter is not supported") {
info = _L("This calibration does not support the currently selected nozzle diameter");
}
else if (reason == "invalid handle_flowrate_cali param") {