ENH:sync AMS does not checking version info

jira:[STUDIO-9692]

Change-Id: I76be87fe219ddd79cae27a7cf5c05315efb0b331
(cherry picked from commit 8f2ab037fd97ead60f8d941c90230306e9227d95)
This commit is contained in:
tao wang
2025-01-11 10:31:17 +08:00
committed by Noisyfox
parent 25900bb917
commit 92db9ad8c5
3 changed files with 4 additions and 4 deletions

View File

@@ -2885,9 +2885,9 @@ void MachineObject::set_online_state(bool on_off)
if (!on_off) m_active_state = NotActive;
}
bool MachineObject::is_info_ready() const
bool MachineObject::is_info_ready(bool check_version) const
{
if (module_vers.empty())
if (check_version && module_vers.empty())
return false;
std::chrono::system_clock::time_point curr_time = std::chrono::system_clock::now();

View File

@@ -1178,7 +1178,7 @@ public:
bool is_connecting();
void set_online_state(bool on_off);
bool is_online() { return m_is_online; }
bool is_info_ready() const;
bool is_info_ready(bool check_version = true) const;
bool is_camera_busy_off();
std::vector<std::string> get_resolution_supported();

View File

@@ -1093,7 +1093,7 @@ bool Sidebar::priv::sync_extruder_list()
printer_tab->set_extruder_volume_type(0, NozzleVolumeType::nvtHighFlow);
printer_tab->set_extruder_volume_type(1, NozzleVolumeType::nvtStandard);
MachineObject *obj = wxGetApp().getDeviceManager()->get_selected_machine();
if (obj == nullptr || !obj->is_info_ready()) {
if (obj == nullptr || !obj->is_info_ready(false)) {
MessageDialog dlg(this->plater, _L("Please select a printer in 'Device' page first."), _L("Sync extruder infomation"), wxOK);
dlg.ShowModal();
return false;