Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'low_urgency_notifications' into 'master'
[transferengine] Use low urgency to hide notification popup. Contributes to JB#51797

See merge request mer-core/transfer-engine!21
  • Loading branch information
pvuorela committed Nov 2, 2020
2 parents 32f1029 + 5635b36 commit 349f2a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/transferengine.cpp
Expand Up @@ -171,7 +171,7 @@ TransferEnginePrivate::TransferEnginePrivate(TransferEngine *parent):
connect(m_accountManager, SIGNAL(accountRemoved(Accounts::AccountId)), this, SLOT(enabledPluginsCheck()));
connect(m_accountManager, SIGNAL(accountUpdated(Accounts::AccountId)), this, SLOT(enabledPluginsCheck()));

// Exit safely stuff if we recieve certain signal or there are no active transfers
// Exit safely stuff if we receive certain signal or there are no active transfers
Q_Q(TransferEngine);
connect(TransferEngineSignalHandler::instance(), SIGNAL(exitSafely()), this, SLOT(exitSafely()));
connect(q, SIGNAL(statusChanged(int,int)), this, SLOT(exitSafely()));
Expand Down Expand Up @@ -486,8 +486,7 @@ void TransferEnginePrivate::sendNotification(TransferEngineData::TransferType ty
}

if (!showPreview) {
notification.clearPreviewSummary();
notification.clearPreviewBody();
notification.setUrgency(Notification::Low);
}

if (useProgress) {
Expand Down

0 comments on commit 349f2a9

Please sign in to comment.