diff options
Diffstat (limited to 'framework/src/sinkfabric.cpp')
-rw-r--r-- | framework/src/sinkfabric.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/framework/src/sinkfabric.cpp b/framework/src/sinkfabric.cpp index 8231b7df..82351ebb 100644 --- a/framework/src/sinkfabric.cpp +++ b/framework/src/sinkfabric.cpp | |||
@@ -160,6 +160,7 @@ public: | |||
160 | default: | 160 | default: |
161 | message["message"] = "An unknown error occurred: " + notification.message; | 161 | message["message"] = "An unknown error occurred: " + notification.message; |
162 | } | 162 | } |
163 | Fabric::Fabric{}.postMessage("errorNotification", message); | ||
163 | } else if (notification.type == Sink::Notification::Info) { | 164 | } else if (notification.type == Sink::Notification::Info) { |
164 | if (notification.code == Sink::ApplicationDomain::TransmissionSuccess) { | 165 | if (notification.code == Sink::ApplicationDomain::TransmissionSuccess) { |
165 | message["type"] = Notification::Info; | 166 | message["type"] = Notification::Info; |
@@ -170,6 +171,10 @@ public: | |||
170 | } else if (notification.type == Sink::Notification::Progress) { | 171 | } else if (notification.type == Sink::Notification::Progress) { |
171 | message["progress"] = notification.progress; | 172 | message["progress"] = notification.progress; |
172 | message["total"] = notification.total; | 173 | message["total"] = notification.total; |
174 | if (!notification.entities.isEmpty()) { | ||
175 | message["folderId"] = notification.entities.first(); | ||
176 | } | ||
177 | message["resourceId"] = notification.resource; | ||
173 | Fabric::Fabric{}.postMessage("progressNotification", message); | 178 | Fabric::Fabric{}.postMessage("progressNotification", message); |
174 | return; | 179 | return; |
175 | } else { | 180 | } else { |