fix(ukcc-plugin):修复切换主题图标时崩溃的问题
This commit is contained in:
parent
5731904aa1
commit
a8edfe1d51
|
@ -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);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue