FIX:fixed not on same LNA&restore IP from cache

Change-Id: I92e518b3cfeae11dfe818c11b8058f0bacd755b4
This commit is contained in:
tao wang 2023-07-06 16:21:27 +08:00 committed by Lane.Wei
parent ab54fb6c80
commit ef1dd258b4
1 changed files with 4 additions and 1 deletions

View File

@ -4726,7 +4726,10 @@ void DeviceManager::parse_user_print_info(std::string body)
if (m_agent) {
obj->set_bind_status(m_agent->get_user_name());
}
obj->dev_ip = Slic3r::GUI::wxGetApp().app_config->get("ip_address", dev_id);
if (obj->dev_ip.empty()) {
obj->dev_ip = Slic3r::GUI::wxGetApp().app_config->get("ip_address", dev_id);
}
userMachineList.insert(std::make_pair(dev_id, obj));
}