FIX: remove the restriction of load ams list

jira: [STUDIO-11667]
Change-Id: I9bc22e24138431cb3d94feacd64396208463da2e
This commit is contained in:
xin.zhang 2025-04-18 11:34:24 +08:00 committed by lane.wei
parent 82664c05ba
commit 9da39db1d6

View File

@ -2092,9 +2092,7 @@ void GUI_App::init_networking_callbacks()
obj->command_get_access_code(); obj->command_get_access_code();
if (m_agent) if (m_agent)
m_agent->install_device_cert(obj->dev_id, obj->is_lan_mode_printer()); m_agent->install_device_cert(obj->dev_id, obj->is_lan_mode_printer());
if (!is_enable_multi_machine()) { GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj);
GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj);
}
} }
}); });
}); });
@ -2205,11 +2203,9 @@ void GUI_App::init_networking_callbacks()
} }
if (!this->is_enable_multi_machine()) { if ((sel == obj || sel == nullptr) && obj->is_ams_need_update) {
if ((sel == obj || sel == nullptr) && obj->is_ams_need_update) { GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj);
GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj); obj->is_ams_need_update = false;
obj->is_ams_need_update = false;
}
} }
} }