Skip to content

Commit

Permalink
fix: 适配当两个序列号一致的U盘
Browse files Browse the repository at this point in the history
修复当两个U盘序列号一致时不正常情况下 被误合并为一个

Log: 适配当两个序列号一致的U盘
  • Loading branch information
jeffshuai authored and deepin-bot[bot] committed Aug 16, 2023
1 parent 893e530 commit a40ae62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deepin-devicemanager/src/DeviceManager/DeviceStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,9 @@ void DeviceStorage::setDiskSerialID(const QString &deviceFiles)

QString DeviceStorage::getDiskSerialID()
{
if (m_Interface.contains("USB", Qt::CaseInsensitive)) {
return m_SerialNumber + m_KeyToLshw;
}
return m_SerialNumber;
}

Expand Down

0 comments on commit a40ae62

Please sign in to comment.