mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-09 16:27:45 -07:00
FIX: extruder ams info sync
Change-Id: I78a731a84100031aed01a381593d608cef61d24a Jira: none (cherry picked from commit 705e1ff0a2a8d02ecc13d2dbe06a9f58837f3d54)
This commit is contained in:
parent
797c2cca4a
commit
7924f92fe1
1 changed files with 3 additions and 2 deletions
|
|
@ -369,7 +369,7 @@ struct ExtruderGroup : StaticGroup
|
|||
|
||||
void set_ams_count(int n4, int n1)
|
||||
{
|
||||
if (n4 == ams_n4 || n1 == ams_n1)
|
||||
if (n4 == ams_n4 && n1 == ams_n1)
|
||||
return;
|
||||
ams_n4 = n4;
|
||||
ams_n1 = n1;
|
||||
|
|
@ -1113,7 +1113,7 @@ void ExtruderGroup::sync_ams(MachineObject const *obj, std::vector<Ams *> const
|
|||
for (auto a : ams) {
|
||||
AMSinfo ams_info;
|
||||
ams_info.parse_ams_info(const_cast<MachineObject*>(obj), a, obj->ams_calibrate_remain_flag, obj->is_support_ams_humidity);
|
||||
infos.push_back(ams_info);
|
||||
infos2.push_back(ams_info);
|
||||
}
|
||||
if (infos == infos2)
|
||||
return false;
|
||||
|
|
@ -3111,6 +3111,7 @@ void Sidebar::deal_btn_sync() {
|
|||
pop_sync_nozzle_and_ams_dialog();
|
||||
}
|
||||
m_begin_sync_printer_status = false;
|
||||
wxGetApp().plater()->update_machine_sync_status();
|
||||
}
|
||||
|
||||
void Sidebar::pop_sync_nozzle_and_ams_dialog() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue