mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-09 07:56:24 -06: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:
parent
3c386f3739
commit
3f9c74c86e
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue