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

This commit is contained in:
iaom 2023-09-22 11:31:05 +08:00
parent 5731904aa1
commit a8edfe1d51
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); iconLabel->setFixedSize(32, 32);
setAppIcon(iconLabel, iconName); setAppIcon(iconLabel, iconName);
connect(m_themeSetting, &QGSettings::changed, [&](const QString &key){ connect(m_themeSetting, &QGSettings::changed, [&, iconLabel, iconName](const QString &key){
if (key == "iconThemeName") if (key == "iconThemeName")
setAppIcon(iconLabel, iconName); setAppIcon(iconLabel, iconName);
}); });