Skip to content

Commit

Permalink
fix: 优化部分显示设备中Name与Model
Browse files Browse the repository at this point in the history
优化部分显示设备中Name与Model

Log:优化部分显示设备中Name与Model
  • Loading branch information
jeffshuai authored and deepin-bot[bot] committed Jul 14, 2023
1 parent 3addd19 commit 906ac92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepin-devicemanager/src/DeviceManager/DeviceGpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ bool DeviceGpu::setHwinfoInfo(const QMap<QString, QString> &mapInfo)
setAttribute(mapInfo, "SubDevice", m_Name, true);
}
setAttribute(mapInfo, "Model", m_Model);
if (!m_Name.isEmpty() && !m_Name.startsWith("pci")) {
if (m_Model.isEmpty() && !m_Name.isEmpty() && !m_Name.startsWith("pci")) {
m_Model = m_Name;
}
setAttribute(mapInfo, "Revision", m_Version, false);
Expand Down

0 comments on commit 906ac92

Please sign in to comment.