Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
transfer-engine
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mer-core
transfer-engine
Commits
2a48e642
Commit
2a48e642
authored
Mar 25, 2015
by
mvogt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[transfer-engine] Use translated notification group names
parent
05c13441
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
data/notificationcategories/x-nemo.transfer.error.conf
data/notificationcategories/x-nemo.transfer.error.conf
+1
-1
src/transferengine.cpp
src/transferengine.cpp
+6
-1
No files found.
data/notificationcategories/x-nemo.transfer.error.conf
View file @
2a48e642
appIcon
=
icon
-
lock
-
transfer
appIcon
=
icon
-
lock
-
information
urgency
=
2
src/transferengine.cpp
View file @
2a48e642
...
...
@@ -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
));
}
}
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment