ENH:optimized printer selection

STUDIO-3380
STUDIO-3532

Change-Id: Id145022072de9c9a0969bdefb4c98e01078b079c
This commit is contained in:
tao wang 2023-07-03 13:25:43 +08:00 committed by Lane.Wei
parent bd4f3bec73
commit b2a2636785
5 changed files with 72 additions and 94 deletions

View file

@ -1873,7 +1873,7 @@ void GUI_App::init_networking_callbacks()
MachineObject* obj = m_device_manager->get_my_machine(tunnel ? dev_id.substr(7) : dev_id);
if (obj) {
obj->is_tunnel_mqtt = tunnel;
obj->command_request_push_all();
obj->command_request_push_all(true);
obj->command_get_version();
GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj);
}
@ -1904,7 +1904,7 @@ void GUI_App::init_networking_callbacks()
if (obj->is_lan_mode_printer()) {
if (state == ConnectStatus::ConnectStatusOk) {
obj->command_request_push_all();
obj->command_request_push_all(true);
obj->command_get_version();
event.SetInt(0);
event.SetString(obj->dev_id);