mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-31 03:40:30 -07:00
FIX:Add print option for a1
jira:[STUDIO-14870] Change-Id: I0d550e15dba4ccc6a30faad56041f476bfe0fd07 (cherry picked from commit 309a01f1853c52630ba2206d2927f4113cf0fa6b)
This commit is contained in:
parent
0f7e6cc442
commit
f4848a5782
1 changed files with 8 additions and 21 deletions
|
|
@ -2759,31 +2759,18 @@ void StatusPanel::update(MachineObject *obj)
|
|||
bool supports_safety = DevPrinterConfigUtil::support_safety_options(current_printer_type);
|
||||
|
||||
DevConfig* config = obj->GetConfig();
|
||||
if (supports_safety) {
|
||||
if (config->SupportFirstLayerInspect()
|
||||
|| config->SupportAIMonitor()
|
||||
|| obj->is_support_build_plate_marker_detect
|
||||
|| obj->is_support_auto_recovery_step_loss) {
|
||||
m_options_btn->Show();
|
||||
if (print_options_dlg) {
|
||||
print_options_dlg->update_machine_obj(obj);
|
||||
print_options_dlg->update_options(obj);
|
||||
}
|
||||
} else {
|
||||
m_options_btn->Hide();
|
||||
|
||||
if (config->SupportFirstLayerInspect() || config->SupportAIMonitor() || obj->is_support_build_plate_marker_detect || obj->is_support_auto_recovery_step_loss) {
|
||||
m_options_btn->Show();
|
||||
if (print_options_dlg) {
|
||||
print_options_dlg->update_machine_obj(obj);
|
||||
print_options_dlg->update_options(obj);
|
||||
}
|
||||
} else {
|
||||
if (obj->support_door_open_check()) {
|
||||
m_options_btn->Show();
|
||||
if (print_options_dlg) {
|
||||
print_options_dlg->update_machine_obj(obj);
|
||||
print_options_dlg->update_options(obj);
|
||||
}
|
||||
} else {
|
||||
m_options_btn->Hide();
|
||||
}
|
||||
m_options_btn->Hide();
|
||||
}
|
||||
|
||||
|
||||
if (obj->support_door_open_check()) {
|
||||
if (supports_safety) {
|
||||
m_safety_btn->Show();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue