Navigation Menu

Skip to content

Commit

Permalink
Omit feedback on notifications with progress info
Browse files Browse the repository at this point in the history
  • Loading branch information
pvuorela committed Jan 15, 2018
1 parent 06e8ac9 commit e61c25a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/notifications/notificationfeedbackplayer.cpp
Expand Up @@ -50,7 +50,8 @@ void NotificationFeedbackPlayer::addNotification(uint id)
{
LipstickNotification *notification = NotificationManager::instance()->notification(id);

if (notification != 0 && isEnabled(notification)) {
// feedback on notifications just directly omitted, not expecting practical use for playing feedback on every update
if (notification != 0 && isEnabled(notification) && !notification->hasProgress()) {
// Stop feedback previously generated by this notification, if current
QMultiHash<LipstickNotification *, uint>::iterator it = m_idToEventId.find(notification);
while (it != m_idToEventId.end() && it.key() == notification) {
Expand Down

0 comments on commit e61c25a

Please sign in to comment.