ENH: can not send print job when the consistency upgrade is required
Change-Id: I7a0c974d3dcfe54fd271e234513489cc0dd358d0 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
8cfee69015
commit
0b452dc65b
|
@ -1846,6 +1846,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::PrintStatusNeedConsistencyUpgrading) {
|
||||
wxString msg_text = _L("Cannot send the print task when the printer need consistency upgrading.");
|
||||
update_print_status_msg(msg_text, true, true);
|
||||
Enable_Send_Button(false);
|
||||
Enable_Refresh_Button(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2588,11 +2593,18 @@ void SelectMachineDialog::update_show_status()
|
|||
}
|
||||
|
||||
// reading done
|
||||
if (wxGetApp().app_config && wxGetApp().app_config->get("internal_debug").empty()) {
|
||||
if (obj_->upgrade_force_upgrade) {
|
||||
show_status(PrintDialogStatus::PrintStatusNeedForceUpgrading);
|
||||
return;
|
||||
}
|
||||
|
||||
if (obj_->upgrade_consistency_request) {
|
||||
show_status(PrintStatusNeedConsistencyUpgrading);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (obj_->is_in_upgrading()) {
|
||||
show_status(PrintDialogStatus::PrintStatusInUpgrading);
|
||||
return;
|
||||
|
|
|
@ -257,7 +257,8 @@ enum PrintDialogStatus {
|
|||
PrintStatusNoSdcard,
|
||||
PrintStatusTimelapseNoSdcard,
|
||||
PrintStatusNotOnTheSameLAN,
|
||||
PrintStatusNeedForceUpgrading
|
||||
PrintStatusNeedForceUpgrading,
|
||||
PrintStatusNeedConsistencyUpgrading
|
||||
};
|
||||
|
||||
std::string get_print_status_info(PrintDialogStatus status);
|
||||
|
|
Loading…
Reference in New Issue