diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-20 12:03:33 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-05-20 12:03:33 +0200 |
commit | be511a719851c14c5ea5c1479ed2d814fbd3a8e6 (patch) | |
tree | 96b4d73cb249bd39c24ac627d05201f4ea033e9d /framework/src/sinkfabric.cpp | |
parent | fa8703974b98622f3f0dcd31cc1bdef554fb227b (diff) | |
download | kube-be511a719851c14c5ea5c1479ed2d814fbd3a8e6.tar.gz kube-be511a719851c14c5ea5c1479ed2d814fbd3a8e6.zip |
Get the folder name in the status bar
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 { |