fix(ukcc-plugin):修复切换主题图标时崩溃的问题

This commit is contained in:
iaom 2023-09-22 11:31:05 +08:00 committed by hewenfei
parent 945ce880c3
commit 120cff2603
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ void Notice::initItemUi(const QString &desktopPath, UkuiNotification::SingleAppl
iconLabel->setFixedSize(32, 32);
setAppIcon(iconLabel, iconName);
connect(m_themeSetting, &QGSettings::changed, [&](const QString &key){
connect(m_themeSetting, &QGSettings::changed, [&, iconLabel, iconName](const QString &key){
if (key == "iconThemeName")
setAppIcon(iconLabel, iconName);
});