mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 06:33:57 -06:00
ENH: can not send print task when printer need force upgrading
Change-Id: I3be5c9c54b3a5fb448b1e96901df8aa7ffbffbd8
This commit is contained in:
parent
eb723d1979
commit
b81a26d019
2 changed files with 12 additions and 1 deletions
|
@ -1807,6 +1807,11 @@ void SelectMachineDialog::show_status(PrintDialogStatus status, std::vector<wxSt
|
||||||
update_print_status_msg(msg_text, true, true);
|
update_print_status_msg(msg_text, true, true);
|
||||||
Enable_Send_Button(true);
|
Enable_Send_Button(true);
|
||||||
Enable_Refresh_Button(true);
|
Enable_Refresh_Button(true);
|
||||||
|
} else if (status == PrintDialogStatus::PrintStatusNeedForceUpgrading) {
|
||||||
|
wxString msg_text = _L("Cannot send the print task when the printer need force upgrading.");
|
||||||
|
update_print_status_msg(msg_text, true, true);
|
||||||
|
Enable_Send_Button(false);
|
||||||
|
Enable_Refresh_Button(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2458,6 +2463,11 @@ void SelectMachineDialog::update_show_status()
|
||||||
}
|
}
|
||||||
|
|
||||||
// reading done
|
// reading done
|
||||||
|
if (obj_->upgrade_force_upgrade) {
|
||||||
|
show_status(PrintDialogStatus::PrintStatusNeedForceUpgrading);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (obj_->is_in_upgrading()) {
|
if (obj_->is_in_upgrading()) {
|
||||||
show_status(PrintDialogStatus::PrintStatusInUpgrading);
|
show_status(PrintDialogStatus::PrintStatusInUpgrading);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -255,7 +255,8 @@ enum PrintDialogStatus {
|
||||||
PrintStatusLanModeNoSdcard,
|
PrintStatusLanModeNoSdcard,
|
||||||
PrintStatusNoSdcard,
|
PrintStatusNoSdcard,
|
||||||
PrintStatusTimelapseNoSdcard,
|
PrintStatusTimelapseNoSdcard,
|
||||||
PrintStatusNotOnTheSameLAN
|
PrintStatusNotOnTheSameLAN,
|
||||||
|
PrintStatusNeedForceUpgrading
|
||||||
};
|
};
|
||||||
|
|
||||||
std::string get_print_status_info(PrintDialogStatus status);
|
std::string get_print_status_info(PrintDialogStatus status);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue