ENH: [STUDIO-4029] ipcam compatible remake

Change-Id: Ic6cda7daa6a4e3b03fe645d8ae60f1e68a2c3864
This commit is contained in:
chunmao.guo
2023-08-14 14:44:17 +08:00
committed by Lane.Wei
parent 182cab1f14
commit 6b5ba84075
6 changed files with 66 additions and 83 deletions

View File

@@ -201,14 +201,14 @@ MediaFilePanel::~MediaFilePanel()
void MediaFilePanel::SetMachineObject(MachineObject* obj)
{
std::string machine = obj ? obj->dev_id : "";
if (obj && obj->is_function_supported(PrinterFunction::FUNC_MEDIA_FILE)) {
if (obj) {
m_supported = true;
m_lan_mode = obj->is_lan_mode_printer();
m_lan_ip = obj->dev_ip;
m_lan_passwd = obj->get_access_code();
m_dev_ver = obj->get_ota_version();
m_local_support = obj->has_local_file_proto();
m_remote_support = obj->has_remote_file_proto();
m_local_support = obj->file_local;
m_remote_support = obj->file_remote;
} else {
m_supported = false;
m_lan_mode = false;