From be511a719851c14c5ea5c1479ed2d814fbd3a8e6 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sat, 20 May 2017 12:03:33 +0200 Subject: Get the folder name in the status bar --- framework/src/sinkfabric.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'framework/src/sinkfabric.cpp') 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: default: message["message"] = "An unknown error occurred: " + notification.message; } + Fabric::Fabric{}.postMessage("errorNotification", message); } else if (notification.type == Sink::Notification::Info) { if (notification.code == Sink::ApplicationDomain::TransmissionSuccess) { message["type"] = Notification::Info; @@ -170,6 +171,10 @@ public: } else if (notification.type == Sink::Notification::Progress) { message["progress"] = notification.progress; message["total"] = notification.total; + if (!notification.entities.isEmpty()) { + message["folderId"] = notification.entities.first(); + } + message["resourceId"] = notification.resource; Fabric::Fabric{}.postMessage("progressNotification", message); return; } else { -- cgit v1.2.3