mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-03 13:30:37 -07:00
FIX: cali should not send job in lan mode
jira: STUDIO-10625 Change-Id: I89227b9f3c06416abe7895fa3edb47358891d573 (cherry picked from commit 6029e4bc5e90094d6dbce08dbb4f47757453dad0)
This commit is contained in:
parent
1f64497e25
commit
4f8ff4b704
1 changed files with 9 additions and 12 deletions
|
|
@ -1687,19 +1687,16 @@ void CalibrationPresetPage::update_show_status()
|
|||
return;
|
||||
}
|
||||
|
||||
if (obj_->need_SD_card()) {
|
||||
if (!obj_->is_support_print_without_sd && (obj_->get_sdcard_state() == MachineObject::SdcardState::NO_SDCARD)) {
|
||||
show_status(CaliPresetPageStatus::CaliPresetStatusNoSdcard);
|
||||
// check sdcard when if lan mode printer
|
||||
if (obj_->is_lan_mode_printer()) {
|
||||
if (obj_->get_sdcard_state() == MachineObject::SdcardState::NO_SDCARD) {
|
||||
show_status(CaliPresetPageStatus::CaliPresetStatusLanModeNoSdcard);
|
||||
return;
|
||||
}
|
||||
|
||||
// check sdcard when if lan mode printer
|
||||
if (obj_->is_lan_mode_printer()) {
|
||||
if (obj_->get_sdcard_state() == MachineObject::SdcardState::NO_SDCARD) {
|
||||
show_status(CaliPresetPageStatus::CaliPresetStatusLanModeNoSdcard);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (!obj_->is_support_print_without_sd && (obj_->get_sdcard_state() == MachineObject::SdcardState::NO_SDCARD)) {
|
||||
show_status(CaliPresetPageStatus::CaliPresetStatusNoSdcard);
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_has_filament_incompatible) {
|
||||
|
|
@ -1793,7 +1790,7 @@ void CalibrationPresetPage::show_status(CaliPresetPageStatus status)
|
|||
else if (status == CaliPresetPageStatus::CaliPresetStatusLanModeNoSdcard) {
|
||||
wxString msg_text = _L("Storage needs to be inserted before printing via LAN.");
|
||||
update_print_status_msg(msg_text, true);
|
||||
Enable_Send_Button(true);
|
||||
Enable_Send_Button(false);
|
||||
}
|
||||
else if (status == CaliPresetPageStatus::CaliPresetStatusNoSdcard) {
|
||||
wxString msg_text = _L("Storage needs to be inserted before printing.");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue