mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: remove the restriction of load ams list
jira: [STUDIO-11667] Change-Id: I9bc22e24138431cb3d94feacd64396208463da2e (cherry picked from commit 9da39db1d6a850328f668c7601521f3323c46a07)
This commit is contained in:
@@ -1710,9 +1710,9 @@ void GUI_App::init_networking_callbacks()
|
||||
obj->command_get_version();
|
||||
obj->erase_user_access_code();
|
||||
obj->command_get_access_code();
|
||||
if (!is_enable_multi_machine()) {
|
||||
GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj);
|
||||
}
|
||||
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);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1821,13 +1821,11 @@ void GUI_App::init_networking_callbacks()
|
||||
else {
|
||||
obj->parse_json(msg, true);
|
||||
}
|
||||
|
||||
|
||||
if (!this->is_enable_multi_machine()) {
|
||||
if ((sel == obj || sel == nullptr) && obj->is_ams_need_update) {
|
||||
GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj);
|
||||
obj->is_ams_need_update = false;
|
||||
}
|
||||
|
||||
if ((sel == obj || sel == nullptr) && obj->is_ams_need_update) {
|
||||
GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj);
|
||||
obj->is_ams_need_update = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user