mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
ENH: reorder the judgement when sending print job
Change-Id: I1a33bba1d33388a61d12c00a11e84c2ee5c00287 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
@@ -892,6 +892,12 @@ void SendToPrinterDialog::update_show_status()
|
|||||||
|
|
||||||
reset_timeout();
|
reset_timeout();
|
||||||
|
|
||||||
|
bool is_suppt = obj_->is_function_supported(PrinterFunction::FUNC_SEND_TO_SDCARD);
|
||||||
|
if (!is_suppt) {
|
||||||
|
show_status(PrintDialogStatus::PrintStatusNotSupportedSendToSDCard);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// reading done
|
// reading done
|
||||||
if (obj_->is_in_upgrading()) {
|
if (obj_->is_in_upgrading()) {
|
||||||
show_status(PrintDialogStatus::PrintStatusInUpgrading);
|
show_status(PrintDialogStatus::PrintStatusInUpgrading);
|
||||||
@@ -915,12 +921,6 @@ void SendToPrinterDialog::update_show_status()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_suppt = obj_->is_function_supported(PrinterFunction::FUNC_SEND_TO_SDCARD);
|
|
||||||
if (!is_suppt) {
|
|
||||||
show_status(PrintDialogStatus::PrintStatusNotSupportedSendToSDCard);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
show_status(PrintDialogStatus::PrintStatusReadingFinished);
|
show_status(PrintDialogStatus::PrintStatusReadingFinished);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user