mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
ENH:sync AMS does not checking version info
jira:[STUDIO-9692] Change-Id: I76be87fe219ddd79cae27a7cf5c05315efb0b331 (cherry picked from commit 8f2ab037fd97ead60f8d941c90230306e9227d95)
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user