mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
FIX:print slice infon will be obtained from the cloud
Change-Id: I7e05787baf1bb1cbca5ff956e371e67bc3f8c7d7
This commit is contained in:
parent
a5774c1902
commit
4c619aeaa0
1 changed files with 3 additions and 10 deletions
|
@ -1725,17 +1725,10 @@ void StatusPanel::update_left_time(int mc_left_time)
|
||||||
void StatusPanel::update_basic_print_data(bool def)
|
void StatusPanel::update_basic_print_data(bool def)
|
||||||
{
|
{
|
||||||
if (def) {
|
if (def) {
|
||||||
auto aprint_stats = wxGetApp().plater()->get_partplate_list().get_current_fff_print().print_statistics();
|
wxString prediction = wxString::Format("%s", get_bbl_time_dhms(obj->slice_info->prediction));
|
||||||
wxString time;
|
wxString weight = wxString::Format("%.2fg", obj->slice_info->weight);
|
||||||
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)); }
|
|
||||||
}
|
|
||||||
|
|
||||||
char weight[64];
|
m_staticText_consumption_of_time->SetLabelText(prediction);
|
||||||
::sprintf(weight, " %.2f g", aprint_stats.total_weight);
|
|
||||||
|
|
||||||
m_staticText_consumption_of_time->SetLabelText(time);
|
|
||||||
m_staticText_consumption_of_weight->SetLabelText(weight);
|
m_staticText_consumption_of_weight->SetLabelText(weight);
|
||||||
} else {
|
} else {
|
||||||
m_staticText_consumption_of_time->SetLabelText("0m");
|
m_staticText_consumption_of_time->SetLabelText("0m");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue