Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[transfer-engine] Use translated notification group names
  • Loading branch information
matthewvogt committed Mar 25, 2015
1 parent 05c1344 commit 2a48e64
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/notificationcategories/x-nemo.transfer.error.conf
@@ -1,2 +1,2 @@
appIcon=icon-lock-transfer
appIcon=icon-lock-information
urgency=2
7 changes: 6 additions & 1 deletion src/transferengine.cpp
Expand Up @@ -409,7 +409,8 @@ void TransferEnginePrivate::sendNotification(TransferEngineData::TransferType ty
m_settings.endGroup();

if (!service.isEmpty() && !path.isEmpty() && !iface.isEmpty() && !method.isEmpty()) {
notification.setRemoteAction(Notification::remoteAction("default", "", service, path, iface, method));
notification.setRemoteActions(QVariantList() << Notification::remoteAction("default", "", service, path, iface, method)
<< Notification::remoteAction("app", "", service, path, iface, method));
}
}

Expand All @@ -418,6 +419,10 @@ void TransferEnginePrivate::sendNotification(TransferEngineData::TransferType ty

// Update the notification
existing->setCategory(category);
//% "Warnings"
existing->setAppName(category == TRANSFER_ERROR_EVENT_CATEGORY ? qtTrId("transferengine-notification_errors_group")
//% "Transfers"
: qtTrId("transferengine-notification_group"));
existing->setSummary(summary);
existing->setBody(body);
existing->setPreviewSummary(previewSummary);
Expand Down

0 comments on commit 2a48e64

Please sign in to comment.