Skip to content

Commit

Permalink
fix: 修复卸载驱动会弹出错误信息未发现该驱动模块
Browse files Browse the repository at this point in the history
 修复sysfs的设备设置驱动信息

Log: 修复卸载驱动时问题

Bug: https://pms.uniontech.com/bug-view-262223.html
  • Loading branch information
shuaijie committed Jul 1, 2024
1 parent 367ff56 commit 1508336
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions deepin-devicemanager/src/DeviceManager/DeviceAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,14 @@ bool DeviceAudio::setInfoFrom_sysFS(QMap<QString, QString> &mapInfo, int ii)
mapInfo.insert("VID_PID", m_VID_PID);
mapInfo.insert("SysFS ID", m_SysPath);
mapInfo.insert("chip", m_Chip);
return true;
//----------------

//2. 获取设备的其它信息
getOtherMapInfo(mapInfo);

// 设置不可禁用
m_CanEnable = false;
m_CanUninstall = false;

return true;
}

bool DeviceAudio::setInfoFromCatDevices(const QMap<QString, QString> &mapInfo)
Expand Down

0 comments on commit 1508336

Please sign in to comment.