diff --git a/applets/notifications/package/contents/ui/NotificationPopup.qml b/applets/notifications/package/contents/ui/NotificationPopup.qml --- a/applets/notifications/package/contents/ui/NotificationPopup.qml +++ b/applets/notifications/package/contents/ui/NotificationPopup.qml @@ -60,6 +60,11 @@ notificationItem.actions.append(notificationProperties.actions) } + function clearPopup() { + notificationProperties = {} + notificationItem.actions.clear() + } + Behavior on y { NumberAnimation { duration: units.longDuration diff --git a/applets/notifications/plugin/notificationshelper.cpp b/applets/notifications/plugin/notificationshelper.cpp --- a/applets/notifications/plugin/notificationshelper.cpp +++ b/applets/notifications/plugin/notificationshelper.cpp @@ -179,6 +179,8 @@ // Make sure the popup gets placed correctly // next time it's put on screen popup->setProperty("initialPositionSet", false); + + QMetaObject::invokeMethod(popup, "clearPopup", Qt::DirectConnection); } m_mutex->lockForRead();