mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: Sync AMS settings after device certificate installation
jira: STUDIO-14191 Change-Id: If4a02ed6f2c5ef111f0c7086b138e3dabc8ed1dd (cherry picked from commit 172824c4b93f6b3eb197481efc38a262774ef313)
This commit is contained in:
@@ -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_)
|
||||
|
||||
Reference in New Issue
Block a user