mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: complete the AMS fresh while state changed
jira: [STUDIO-10305] Change-Id: Ie6cbc359bdf9fe02f103f58e25f490105faaf381 (cherry picked from commit 9d7c9c54fc47d6e9000d2570fd391a9823e8b33e)
This commit is contained in:
@@ -1118,8 +1118,7 @@ void AMSControl::createAmsPanel(wxSimplebook* parent, int& idx, std::vector<AMSi
|
||||
}
|
||||
}
|
||||
else { //only an ext in a panel
|
||||
if (ams1->get_ext_image()) {
|
||||
ams1->get_ext_image()->setShowState(false);
|
||||
if (ams1->get_ext_image()) { ams1->get_ext_image()->setShowState(false);
|
||||
}
|
||||
if (ams1->get_ams_model() == AMSModel::EXT_AMS) {
|
||||
if (ams1->get_ext_type() == LITE_EXT) {
|
||||
@@ -1487,8 +1486,7 @@ void AMSControl::SetAmsStep(std::string ams_id, std::string canid, AMSPassRoadTy
|
||||
if (ams->get_can_count() == GENERIC_AMS_SLOT_NUM){
|
||||
length = left ? 129 : 145;
|
||||
model = ams->get_ams_model();
|
||||
}
|
||||
else if (ams->get_can_count() == 1){
|
||||
} else if (ams->get_can_count() == 1) {
|
||||
for (auto it : pair_id){
|
||||
if (it.first == ams_id){
|
||||
length = left ? 218 : 124;
|
||||
|
||||
Reference in New Issue
Block a user