ENH:display info when in slicing queue

Change-Id: I0dc2645e5679af310c8c0558c8ae47c9d62958e1
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
Stone Li 2023-03-16 12:19:49 +08:00 committed by Lane.Wei
parent d9395e6405
commit c9635174bd
3 changed files with 14 additions and 4 deletions

View file

@ -2256,9 +2256,13 @@ void StatusPanel::update_subtask(MachineObject *obj)
wxString prepare_text;
if (obj->is_in_prepare())
prepare_text = wxString::Format(_L("Downloading..."));
else if (obj->print_status == "SLICING")
prepare_text = wxString::Format(_L("Cloud Slicing..."));
else
else if (obj->print_status == "SLICING") {
if (obj->queue_number <= 0) {
prepare_text = wxString::Format(_L("Cloud Slicing..."));
} else {
prepare_text = wxString::Format(_L("In Cloud Slicing Queue, there are %s tasks ahead."), std::to_string(obj->queue_number));
}
} else
prepare_text = wxString::Format(_L("Downloading..."));
if (obj->gcode_file_prepare_percent >= 0 && obj->gcode_file_prepare_percent <= 100)