ENH: update how to load_ams_list

JIRA: [STUDIO-14255]
Change-Id: I204f881b72185ee16f8ff204feb6469504f9f86b
(cherry picked from commit 4150ff5c178de02dfa67e6bd90765e35c6a64e99)
This commit is contained in:
xin.zhang
2025-09-23 16:29:58 +08:00
committed by Noisyfox
parent 8b640a148e
commit fabc681442
8 changed files with 32 additions and 31 deletions

View File

@@ -642,9 +642,6 @@ bool CalibrationPanel::Show(bool show) {
obj = dev->get_selected_machine();
if (obj == nullptr) {
dev->load_last_machine();
obj = dev->get_selected_machine();
if (obj)
GUI::wxGetApp().sidebar().load_ams_list(obj->get_dev_id(), obj);
}
else {
obj->reset_update_time();
@@ -682,7 +679,6 @@ void CalibrationPanel::set_default()
{
obj = nullptr;
last_conn_type = "undefined";
wxGetApp().sidebar().load_ams_list({}, {});
}
void CalibrationPanel::msw_rescale()