mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-20 21:59:18 +08: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
258148355c
commit
7f4948de62
@ -892,6 +892,12 @@ void SendToPrinterDialog::update_show_status()
|
||||
|
||||
reset_timeout();
|
||||
|
||||
bool is_suppt = obj_->is_function_supported(PrinterFunction::FUNC_SEND_TO_SDCARD);
|
||||
if (!is_suppt) {
|
||||
show_status(PrintDialogStatus::PrintStatusNotSupportedSendToSDCard);
|
||||
return;
|
||||
}
|
||||
|
||||
// reading done
|
||||
if (obj_->is_in_upgrading()) {
|
||||
show_status(PrintDialogStatus::PrintStatusInUpgrading);
|
||||
@ -914,12 +920,6 @@ void SendToPrinterDialog::update_show_status()
|
||||
show_status(PrintDialogStatus::PrintStatusNotOnTheSameLAN);
|
||||
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user