ENH: if nothing selected then disable aplly btn && update plate index parse

Jira: [STUDIO-13299]
Change-Id: I1ce7271d005f7fec4d71ece9db13916a9fcc1e1d
(cherry picked from commit b2386964814dee68a1936da912eea339f5317ddc)
This commit is contained in:
hemai
2025-07-09 17:57:17 +08:00
committed by Noisyfox
parent 7d147cc550
commit ddf6ed00c5
3 changed files with 63 additions and 24 deletions

View File

@@ -2988,7 +2988,7 @@ int MachineObject::parse_json(std::string payload, bool key_field_only)
}
}
}
if (j_pre["print"].contains("plate_idx") && m_plate_index == -1){
if (j_pre["print"].contains("plate_idx")){ // && m_plate_index == -1
m_plate_index = j_pre["print"]["plate_idx"].get<int>();
}
}