FIX: only update ams list on selected machine

Change-Id: I7aac78ef1e10c0004651d3686f806d9d15d77d7a
This commit is contained in:
chunmao.guo
2022-12-15 04:33:48 -05:00
committed by Lane.Wei
parent 11f74c21d3
commit 808a82300a
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1735,7 +1735,7 @@ void GUI_App::init_networking_callbacks()
if (obj) {
obj->parse_json(msg);
if (obj->is_ams_need_update) {
if (this->m_device_manager->get_selected_machine() == obj && obj->is_ams_need_update) {
GUI::wxGetApp().sidebar().load_ams_list(obj->amsList);
}
}