From 70c4397e4c1afa71c2b4cdf20e0d8060be69b6ba Mon Sep 17 00:00:00 2001
From: Akira Ohgaki <akiraohgaki@gmail.com>
Date: Fri, 14 Oct 2016 21:39:03 +0900
Subject: [PATCH] Add function for downloadProgress signal

---
 src/qml/main.qml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/qml/main.qml b/src/qml/main.qml
index 0e20fa7..f7cb205 100644
--- a/src/qml/main.qml
+++ b/src/qml/main.qml
@@ -89,6 +89,10 @@ Window {
             errorDialog.open();
         });
 
+        xdgUrlHandler.downloadProgress.connect(function(received, total) {
+            console.log([received, total]);
+        });
+
         if (xdgUrlHandler.isValid()) {
             confirmDialog.text = 'Do you want to ' + metadata.command + '?';
             confirmDialog.informativeText = metadata.filename;
-- 
GitLab