FIX: Sync AMS settings after device certificate installation

jira: STUDIO-14191
Change-Id: If4a02ed6f2c5ef111f0c7086b138e3dabc8ed1dd
(cherry picked from commit 172824c4b93f6b3eb197481efc38a262774ef313)
This commit is contained in:
haolin.tian
2025-08-25 10:10:51 +08:00
committed by Noisyfox
parent f36f73e518
commit 90830ab2ea
4 changed files with 26 additions and 1 deletions

View File

@@ -2299,6 +2299,7 @@ void MachineObject::reset()
job_id_ = "";
jobState_ = 0;
m_plate_index = -1;
device_cert_installed = false;
// reset print_json
json empty_j;
@@ -2395,6 +2396,11 @@ bool MachineObject::is_info_ready(bool check_version) const
}
bool MachineObject::is_security_control_ready() const
{
return device_cert_installed;
}
std::vector<std::string> MachineObject::get_resolution_supported()
{
return camera_resolution_supported;
@@ -4230,6 +4236,11 @@ int MachineObject::publish_gcode(std::string gcode_str)
return publish_json(j);
}
void MachineObject::update_device_cert_state(bool ready)
{
device_cert_installed = ready;
}
BBLSubTask* MachineObject::get_subtask()
{
if (!subtask_)