From 4c619aeaa07ed3de25236e144e5527495ae419ba Mon Sep 17 00:00:00 2001 From: tao wang Date: Mon, 29 Aug 2022 19:01:07 +0800 Subject: [PATCH] FIX:print slice infon will be obtained from the cloud Change-Id: I7e05787baf1bb1cbca5ff956e371e67bc3f8c7d7 --- src/slic3r/GUI/StatusPanel.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/slic3r/GUI/StatusPanel.cpp b/src/slic3r/GUI/StatusPanel.cpp index 4f6db5f70e..8d3a1897b4 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -1725,17 +1725,10 @@ void StatusPanel::update_left_time(int mc_left_time) void StatusPanel::update_basic_print_data(bool def) { if (def) { - auto aprint_stats = wxGetApp().plater()->get_partplate_list().get_current_fff_print().print_statistics(); - wxString time; - PartPlate *plate = wxGetApp().plater()->get_partplate_list().get_curr_plate(); - if (plate) { - if (plate->get_slice_result()) { time = wxString::Format("%s", get_bbl_monitor_time_dhm(plate->get_slice_result()->print_statistics.modes[0].time)); } - } + wxString prediction = wxString::Format("%s", get_bbl_time_dhms(obj->slice_info->prediction)); + wxString weight = wxString::Format("%.2fg", obj->slice_info->weight); - char weight[64]; - ::sprintf(weight, " %.2f g", aprint_stats.total_weight); - - m_staticText_consumption_of_time->SetLabelText(time); + m_staticText_consumption_of_time->SetLabelText(prediction); m_staticText_consumption_of_weight->SetLabelText(weight); } else { m_staticText_consumption_of_time->SetLabelText("0m");