ENH:add network detection for LAN mode printer

Change-Id: I0e3616b08f1a455df05c98c3b194ff9177df3ff1
This commit is contained in:
tao wang 2023-02-02 16:41:56 +08:00 committed by Lane.Wei
parent 9936c2b823
commit c000ab2d8a
7 changed files with 29 additions and 16 deletions

View file

@ -148,7 +148,7 @@ void ConnectPrinterDialog::on_button_confirm(wxCommandEvent &event)
}
}
if (m_obj) {
m_obj->set_access_code(code.ToStdString());
m_obj->set_user_access_code(code.ToStdString());
wxGetApp().getDeviceManager()->set_selected_machine(m_obj->dev_id);
}
EndModal(wxID_OK);