FIX:fixed issue of printing progress not being displayed

jira:[STUDIO-11588]

Change-Id: I369b9ed375ef3b3913553c3a965ce1aa96ec1129
This commit is contained in:
tao wang 2025-04-24 21:19:48 +08:00 committed by lane.wei
parent 8cfa735c6c
commit 378da0de26
2 changed files with 9 additions and 9 deletions

View File

@ -187,7 +187,7 @@ void MultiMachineItem::doRender(wxDC& dc)
else if (state_device > 2 && state_device < 7) {
dc.SetFont(Label::Body_12);
dc.SetTextForeground(wxColour(0, 174, 66));
if (obj_->get_curr_stage().IsEmpty() && obj_->subtask_) {
if (obj_->get_curr_stage() == _L("Printing") && obj_->subtask_) {
//wxString layer_info = wxString::Format(_L("Layer: %d/%d"), obj_->curr_layer, obj_->total_layers);
wxString progress_info = wxString::Format("%d", obj_->subtask_->task_progress);
wxString left_time = wxString::Format("%s", get_left_time(obj_->mc_left_time));

View File

@ -387,7 +387,7 @@ void MultiTaskItem::doRender(wxDC& dc)
else if (state_device > 2 && state_device < 7) {
dc.SetFont(Label::Body_12);
dc.SetTextForeground(wxColour(0, 174, 66));
if (obj_->get_curr_stage().IsEmpty()) {
if (obj_->get_curr_stage() == _L("Printing") && obj_->subtask_) {
//wxString layer_info = wxString::Format(_L("Layer: %d/%d"), obj_->curr_layer, obj_->total_layers);
wxString progress_info = wxString::Format("%d", obj_->subtask_->task_progress);
wxString left_time = wxString::Format("%s", get_left_time(obj_->mc_left_time));