FIX: auto sync extruder list after connect printer

when enter in prepare page
jira: none

Change-Id: I3dd0ac4fbc283d5c4b8e85d01724251cc1a7131e
(cherry picked from commit 34ed8441a16499f922e82b6c83f140eda58055a5)
This commit is contained in:
zhimin.zeng
2025-01-17 15:04:52 +08:00
committed by Noisyfox
parent 8267224756
commit 98f305f32c
4 changed files with 18 additions and 6 deletions

View File

@@ -300,8 +300,9 @@ void MonitorPanel::on_update_all(wxMouseEvent &event)
obj_->last_cali_version = -1;
obj_->reset_pa_cali_history_result();
obj_->reset_pa_cali_result();
GUI::wxGetApp().sidebar().load_ams_list(obj_->dev_id, obj_);
GUI::wxGetApp().sidebar().auto_sync_extruder_list_on_connect_priner(obj_);
Sidebar &sidebar = GUI::wxGetApp().sidebar();
sidebar.load_ams_list(obj_->dev_id, obj_);
sidebar.set_need_auto_sync_after_connect_printer(sidebar.need_auto_sync_extruder_list_after_connect_priner(obj_));
}
Layout();