diff --git a/panels/notification/server/notificationmanager.cpp b/panels/notification/server/notificationmanager.cpp index ce3d16f94..a02efa10a 100644 --- a/panels/notification/server/notificationmanager.cpp +++ b/panels/notification/server/notificationmanager.cpp @@ -245,8 +245,6 @@ uint NotificationManager::Notify(const QString &appName, uint replacesId, const } const bool onDesktopShow = m_setting->appValue(appId, NotificationSetting::ShowOnDesktop).toBool(); - tryPlayNotificationSound(entity, appId, dndMode); - // new one if (replacesId == NoReplacesId) { entity.setBubbleId(++m_replacesCount); @@ -292,6 +290,8 @@ uint NotificationManager::Notify(const QString &appName, uint replacesId, const } } + tryPlayNotificationSound(entity, appId, dndMode); + qInfo(notifyLog) << "Notify done, bubbleId:" << entity.bubbleId() << ", id:" << entity.id() << ", type:" << entity.processedType(); // If replaces_id is 0, the return value is a UINT32 that represent the notification.