Skip to content

Commit 6c0605f

Browse files
committed
fix: Closing notification when it was closed or invoked from notification-center.
as title Log: as title Bug: https://pms.uniontech.com/bug-view-290009.html
1 parent 4c7e428 commit 6c0605f

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

panels/notification/bubble/bubblepanel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void BubblePanel::onNotificationStateChanged(qint64 id, int processedType)
113113
if (processedType == NotifyEntity::NotProcessed) {
114114
qDebug(notifyLog) << "Add bubble for the notification" << id;
115115
addBubble(id);
116-
} else if (processedType == NotifyEntity::Processed) {
116+
} else if (processedType == NotifyEntity::Processed || processedType == NotifyEntity::Removed) {
117117
qDebug(notifyLog) << "Close bubble for the notification" << id;
118118
closeBubble(id);
119119
}

panels/notification/center/notifyaccessor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ void NotifyAccessor::invokeNotify(const NotifyEntity &entity, const QString &act
189189
qDebug(notifyLog) << "Invoke notify" << id << actionId;
190190
QMetaObject::invokeMethod(m_dataUpdater, "actionInvoked", Qt::DirectConnection,
191191
Q_ARG(qint64, id), Q_ARG(uint, bubbleId), Q_ARG(const QString&, actionId));
192-
193192
}
194193

195194
// don't need to emit ActionInvoked of protocol.

panels/notification/server/notifyserverapplet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#include "notificationmanager.h"
77
#include "dbusadaptor.h"
88
#include "pluginfactory.h"
9+
#include "notifyentity.h"
910

1011
namespace notification {
1112
Q_DECLARE_LOGGING_CATEGORY(notifyLog)

0 commit comments

Comments
 (0)