FIX: use actual printer_type when connecting with ip&access_code

jira: [STUDIO-13841]
Change-Id: Iff594cd1f6dcd5c6485ab0aa67c98f422a75fd6c
(cherry picked from commit f8d0f62a1b3f3379de40a3b845c06fe61d907d82)
This commit is contained in:
haolin.tian
2025-08-05 20:05:16 +08:00
committed by Noisyfox
parent cae1fe4dd4
commit e68daa36c9
3 changed files with 13 additions and 4 deletions

View File

@@ -2105,7 +2105,9 @@ void InputIpAddressDialog::workerThreadFunc(std::string str_ip, std::string str_
machine.dev_ip = str_ip;
machine.dev_id = detectData.dev_id;
machine.printer_type = detectData.model_id;
m_obj = dev->insert_local_device(machine, detectData.connect_type, detectData.bind_state, detectData.version, str_access_code);
m_obj = dev->insert_local_device(machine,
detectData.connect_type, detectData.bind_state, detectData.version,
str_access_code);
if (w.expired()) return;