mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
FIX:Add print option for a1
jira:[STUDIO-14870] Change-Id: I0d550e15dba4ccc6a30faad56041f476bfe0fd07 (cherry picked from commit 309a01f1853c52630ba2206d2927f4113cf0fa6b)
This commit is contained in:
@@ -2759,31 +2759,18 @@ void StatusPanel::update(MachineObject *obj)
|
|||||||
bool supports_safety = DevPrinterConfigUtil::support_safety_options(current_printer_type);
|
bool supports_safety = DevPrinterConfigUtil::support_safety_options(current_printer_type);
|
||||||
|
|
||||||
DevConfig* config = obj->GetConfig();
|
DevConfig* config = obj->GetConfig();
|
||||||
if (supports_safety) {
|
|
||||||
if (config->SupportFirstLayerInspect()
|
if (config->SupportFirstLayerInspect() || config->SupportAIMonitor() || obj->is_support_build_plate_marker_detect || obj->is_support_auto_recovery_step_loss) {
|
||||||
|| config->SupportAIMonitor()
|
m_options_btn->Show();
|
||||||
|| obj->is_support_build_plate_marker_detect
|
if (print_options_dlg) {
|
||||||
|| obj->is_support_auto_recovery_step_loss) {
|
print_options_dlg->update_machine_obj(obj);
|
||||||
m_options_btn->Show();
|
print_options_dlg->update_options(obj);
|
||||||
if (print_options_dlg) {
|
|
||||||
print_options_dlg->update_machine_obj(obj);
|
|
||||||
print_options_dlg->update_options(obj);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
m_options_btn->Hide();
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (obj->support_door_open_check()) {
|
m_options_btn->Hide();
|
||||||
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 (obj->support_door_open_check()) {
|
if (obj->support_door_open_check()) {
|
||||||
if (supports_safety) {
|
if (supports_safety) {
|
||||||
m_safety_btn->Show();
|
m_safety_btn->Show();
|
||||||
|
|||||||
Reference in New Issue
Block a user