mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-01 04:10:56 -07:00
ENH: AMSSetting do not show insert read for A with AMS Lite
JIRA: [STUDIO-14575] Change-Id: Id5593a4c034ba067cf2f40f3b632e55291468189 (cherry picked from commit ea4629b1cdb8479e6f69e37b497eb292ef415c06)
This commit is contained in:
parent
934f32bd8c
commit
d5da6b834b
1 changed files with 11 additions and 0 deletions
|
|
@ -351,6 +351,17 @@ void AMSSetting::update_insert_material_read_mode(MachineObject* obj)
|
|||
return;
|
||||
}
|
||||
|
||||
// special case for A series
|
||||
if (auto ptr = obj->GetFilaSystem()->GetAmsFirmwareSwitch().lock(); ptr->SupportSwitchFirmware()) {
|
||||
if (ptr->GetCurrentFirmwareIdxSel() == DevAmsSystemFirmwareSwitch::IDX_LITE) {
|
||||
m_panel_Insert_material->Show(false);
|
||||
return;
|
||||
}
|
||||
} else if (DevPrinterConfigUtil::get_printer_use_ams_type(obj->printer_type) == "f1") {
|
||||
m_panel_Insert_material->Show(false);
|
||||
return;
|
||||
}
|
||||
|
||||
std::string extra_ams_str = (boost::format("ams_f1/%1%") % 0).str();
|
||||
auto extra_ams_it = obj->module_vers.find(extra_ams_str);
|
||||
if (extra_ams_it != obj->module_vers.end()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue