psa: added automatic updates
[feedingit] / psa_harmattan / feedingit / qml / main.qml
index 973bbdb..866b44e 100644 (file)
@@ -313,4 +313,19 @@ PageStackWindow {
 
         //text: "This is an info banner with no icon"
     }
+
+    AutomaticUpdate {
+        id: autoUpdate
+
+        Connections {
+            target: settings
+            onAutoUpdateEnabledChanged: {
+                if (!settings.autoUpdateEnabled) {
+                    stop();
+                } else {
+                    start();
+                }
+            }
+        }
+    }
 }