psa: added automatic updates
[feedingit] / psa_harmattan / feedingit / qml / SettingsPage.qml
index 1cc1954..4a85b72 100644 (file)
@@ -47,6 +47,16 @@ Page {
                 controller.setBooleanSetting("imageCache", checked)
             }
         }
+
+        SwitchSetting {
+            text: qsTr("Auto-update every 6 hours (requires application running)")
+            checked: controller.getBooleanSetting("autoupdate")
+
+            onSwitched: {
+                controller.setBooleanSetting("autoupdate", checked)
+                settings.autoUpdateEnabled = checked
+            }
+        }
     }
 
 }