From 917d1716164c84c9427d126f6d33a4a58c668744 Mon Sep 17 00:00:00 2001 From: gongheng Date: Thu, 24 Jul 2025 16:29:39 +0800 Subject: [PATCH] feat: [GPU] Add logic to show GPU info. -- Clear the preview cache to avoid duplicate infomation accumulation. Log: add feature for GPU. Task: https://pms.uniontech.com/task-view-378987.html --- deepin-devicemanager/src/DeviceManager/DeviceGpu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/deepin-devicemanager/src/DeviceManager/DeviceGpu.cpp b/deepin-devicemanager/src/DeviceManager/DeviceGpu.cpp index 04deee6d..8eff786a 100644 --- a/deepin-devicemanager/src/DeviceManager/DeviceGpu.cpp +++ b/deepin-devicemanager/src/DeviceManager/DeviceGpu.cpp @@ -287,6 +287,7 @@ void DeviceGpu::setGpuInfo(const QMap &mapInfo) // 名称(Name) 厂商(Vendor) 型号(Model) 版本(Version) 显存(Graphics Memory) void DeviceGpu::setGpuInfoByCustom(const QMap &mapInfo) { + m_extraInfo.clear(); QMap::const_iterator it = mapInfo.constBegin(); for (; it != mapInfo.constEnd(); ++it) { if (it.key() == "Name") {