mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-21 07:03:11 +08:00
FIX: cali: sync history window flickering
Jira: STUDIO-4469 Change-Id: I1b88fa4d1a35f83de821c69da11c01701c3d3658
This commit is contained in:
parent
7055eb9f87
commit
bb16744569
@ -124,16 +124,16 @@ void HistoryWindow::sync_history_result(MachineObject* obj)
|
|||||||
if (obj)
|
if (obj)
|
||||||
m_calib_results_history = obj->pa_calib_tab;
|
m_calib_results_history = obj->pa_calib_tab;
|
||||||
|
|
||||||
sync_history_data();
|
|
||||||
|
|
||||||
if (m_calib_results_history.empty()) {
|
if (m_calib_results_history.empty()) {
|
||||||
m_tips->SetLabel(_L("No History Result"));
|
m_tips->SetLabel(_L("No History Result"));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
m_tips->SetLabel(_L("Success to get history result"));
|
m_tips->SetLabel(_L("Success to get history result"));
|
||||||
}
|
}
|
||||||
m_tips->Refresh();
|
m_tips->Refresh();
|
||||||
|
|
||||||
|
sync_history_data();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HistoryWindow::on_device_connected(MachineObject* obj)
|
void HistoryWindow::on_device_connected(MachineObject* obj)
|
||||||
@ -191,8 +191,10 @@ void HistoryWindow::on_select_nozzle(wxCommandEvent& evt)
|
|||||||
void HistoryWindow::reqeust_history_result(MachineObject* obj)
|
void HistoryWindow::reqeust_history_result(MachineObject* obj)
|
||||||
{
|
{
|
||||||
if (curr_obj) {
|
if (curr_obj) {
|
||||||
|
// reset
|
||||||
curr_obj->reset_pa_cali_history_result();
|
curr_obj->reset_pa_cali_history_result();
|
||||||
sync_history_result(curr_obj);
|
m_calib_results_history.clear();
|
||||||
|
sync_history_data();
|
||||||
|
|
||||||
float nozzle_value = get_nozzle_value();
|
float nozzle_value = get_nozzle_value();
|
||||||
if (nozzle_value > 0) {
|
if (nozzle_value > 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user