psa: fixed configdir value
[feedingit] / psa_harmattan / feedingit / qml / main.qml
index 866b44e..0ade188 100644 (file)
@@ -18,6 +18,14 @@ PageStackWindow {
         window.addFileSignal(fullname,filename)
     }
 
+    function updateStarted() {
+        banner.show(qsTr("Update Started"))
+    }
+
+    function updateFinished() {
+        banner.show(qsTr("Updated Completed"))
+    }
+
     onLongPressFeed: {
         unsubscribeFeedMenu.key = key
         unsubscribeFeedMenu.open()
@@ -314,16 +322,18 @@ PageStackWindow {
         //text: "This is an info banner with no icon"
     }
 
-    AutomaticUpdate {
-        id: autoUpdate
+    Item {
+        AutomaticUpdate {
+            id: autoUpdate
+        }
 
         Connections {
             target: settings
             onAutoUpdateEnabledChanged: {
                 if (!settings.autoUpdateEnabled) {
-                    stop();
+                    autoUpdate.stop();
                 } else {
-                    start();
+                    autoUpdate.start();
                 }
             }
         }