FIX: remove the restriction of load ams list

jira: [STUDIO-11667]
Change-Id: I9bc22e24138431cb3d94feacd64396208463da2e
(cherry picked from commit 9da39db1d6a850328f668c7601521f3323c46a07)
This commit is contained in:
xin.zhang
2025-04-18 11:34:24 +08:00
committed by Noisyfox
parent f4204d41ec
commit 75710b72c9

View File

@@ -1710,10 +1710,10 @@ void GUI_App::init_networking_callbacks()
obj->command_get_version(); obj->command_get_version();
obj->erase_user_access_code(); obj->erase_user_access_code();
obj->command_get_access_code(); obj->command_get_access_code();
if (!is_enable_multi_machine()) { if (m_agent)
m_agent->install_device_cert(obj->dev_id, obj->is_lan_mode_printer());
GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj); GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj);
} }
}
}); });
}); });
@@ -1823,13 +1823,11 @@ 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;
} }
} }
}
if (GUI::wxGetApp().plater()) if (GUI::wxGetApp().plater())
GUI::wxGetApp().plater()->update_machine_sync_status(); GUI::wxGetApp().plater()->update_machine_sync_status();