Skip to content

Commit

Permalink
fix: dci icon cache key miss theme name
Browse files Browse the repository at this point in the history
dci 图标缓存没有加上主题名导致可能在不同的主题时匹配到其他主题缓存的图标

Issue: linuxdeepin/developer-center#4517
  • Loading branch information
FeiWang1119 authored and kegechen committed Aug 21, 2023
1 parent d3d7096 commit 95212dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/private/dciiconengine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ QPixmap DDciIconEngine::pixmap(const QSize &size, QIcon::Mode mode, QIcon::State
const DDciIcon::Theme theme = dciTheme();
const DDciIconPalette pa = dciPalettle();

QString key = QLatin1String("dci_") + m_iconName +
QString key = QLatin1String("dci_") + m_iconName + m_iconThemeName +
DDciIconPalette::convertToString(pa)
% HexString<uint>(mode)
% HexString<int>(theme)
Expand Down

0 comments on commit 95212dd

Please sign in to comment.