ENH: add tips for P1P when printing all is not supported
Change-Id: I5caa5dbc2d9cd3c57318a2366c8a8ef494d4df31 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
2b35478e12
commit
d25f7535a9
|
@ -19,6 +19,7 @@
|
|||
"FUNC_AUTO_SWITCH_FILAMENT": false,
|
||||
"FUNC_CHAMBER_FAN" : false,
|
||||
"FUNC_EXTRUSION_CALI": true,
|
||||
"FUNC_PRINT_ALL" : false,
|
||||
"FUNC_SEND_TO_SDCARD": false
|
||||
},
|
||||
"camera_resolution":["720p"],
|
||||
|
|
|
@ -2177,6 +2177,9 @@ bool MachineObject::is_function_supported(PrinterFunction func)
|
|||
return false;
|
||||
func_name = "FUNC_EXTRUSION_CALI";
|
||||
break;
|
||||
case FUNC_PRINT_ALL:
|
||||
func_name = "FUNC_PRINT_ALL";
|
||||
break;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -88,6 +88,7 @@ enum PrinterFunction {
|
|||
FUNC_AUTO_SWITCH_FILAMENT,
|
||||
FUNC_CHAMBER_FAN,
|
||||
FUNC_EXTRUSION_CALI,
|
||||
FUNC_PRINT_ALL,
|
||||
FUNC_MAX
|
||||
};
|
||||
|
||||
|
|
|
@ -92,6 +92,8 @@ std::string get_print_status_info(PrintDialogStatus status)
|
|||
return "PrintStatusNoSdcard";
|
||||
case PrintStatusTimelapseNoSdcard:
|
||||
return "PrintStatusTimelapseNoSdcard";
|
||||
case PrintStatusNotSupportedPrintAll:
|
||||
return "PrintStatusNotSupportedPrintAll";
|
||||
}
|
||||
return "unknown";
|
||||
}
|
||||
|
@ -1873,6 +1875,11 @@ void SelectMachineDialog::show_status(PrintDialogStatus status, std::vector<wxSt
|
|||
update_print_status_msg(msg_text, true, true);
|
||||
Enable_Send_Button(false);
|
||||
Enable_Refresh_Button(true);
|
||||
} else if (status == PrintDialogStatus::PrintStatusNotSupportedPrintAll) {
|
||||
wxString msg_text = _L("This printer does not support printing all plates");
|
||||
update_print_status_msg(msg_text, true, true);
|
||||
Enable_Send_Button(false);
|
||||
Enable_Refresh_Button(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2613,6 +2620,12 @@ void SelectMachineDialog::update_show_status()
|
|||
reset_timeout();
|
||||
update_ams_check(obj_);
|
||||
|
||||
if (!obj_->is_function_supported(PrinterFunction::FUNC_PRINT_ALL) && m_print_plate_idx == PLATE_ALL_IDX) {
|
||||
show_status(PrintDialogStatus::PrintStatusNotSupportedPrintAll);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// do ams mapping if no ams result
|
||||
if (obj_->has_ams() && m_ams_mapping_result.empty()) {
|
||||
if (obj_->ams_support_use_ams) {
|
||||
|
|
|
@ -260,6 +260,7 @@ enum PrintDialogStatus {
|
|||
PrintStatusNeedForceUpgrading,
|
||||
PrintStatusNeedConsistencyUpgrading,
|
||||
PrintStatusNotSupportedSendToSDCard,
|
||||
PrintStatusNotSupportedPrintAll,
|
||||
PrintStatusBlankPlate
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue