FIX: calibration history dialog flickering

Change-Id: Ife2720553f1e67292d7e222bda89b0d7f417e382
This commit is contained in:
liz.li 2023-07-19 15:27:50 +08:00 committed by Lane.Wei
parent 28899c4b9a
commit 04c6964de4
1 changed files with 3 additions and 1 deletions

View File

@ -199,6 +199,7 @@ void HistoryWindow::reqeust_history_result(MachineObject* obj)
}
void HistoryWindow::sync_history_data() {
m_history_data_panel->Freeze();
m_history_data_panel->DestroyChildren();
wxGridBagSizer* gbSizer;
gbSizer = new wxGridBagSizer(FromDIP(0), FromDIP(50));
@ -291,7 +292,8 @@ void HistoryWindow::sync_history_data() {
i++;
}
Layout();
m_history_data_panel->Layout();
m_history_data_panel->Thaw();
}
float HistoryWindow::get_nozzle_value()