ENH:optimize the check for the existence of SD cards

jira:[none]

Change-Id: Iee386e97f66664cfa57aa66ea3457de30d6e987a
This commit is contained in:
tao wang 2025-04-14 11:19:22 +08:00 committed by lane.wei
parent 977f054f7f
commit a209330b7a

View File

@ -223,7 +223,7 @@ void MediaFilePanel::SetMachineObject(MachineObject* obj)
m_lan_passwd = obj->get_access_code();
m_dev_ver = obj->get_ota_version();
m_device_busy = obj->is_camera_busy_off();
m_sdcard_exist = obj->sdcard_state == MachineObject::SdcardState::HAS_SDCARD_NORMAL || obj->sdcard_state == MachineObject::SdcardState::HAS_SDCARD_READONLY;
m_sdcard_exist = obj->sdcard_state == MachineObject::SdcardState::HAS_SDCARD_NORMAL;
m_local_proto = obj->file_local;
m_remote_proto = obj->get_file_remote();
m_model_download_support = obj->file_model_download;