We manually set the the camera mode upon startup to avoid binding the value.
authorMohammed Sameer <msameer@foolab.org>
Tue, 4 Sep 2012 10:00:01 +0000 (13:00 +0300)
committerMohammed Sameer <msameer@foolab.org>
Tue, 4 Sep 2012 10:00:01 +0000 (13:00 +0300)
qml/main.qml

index 5853ce5..1555f76 100644 (file)
@@ -62,7 +62,7 @@ PageStackWindow {
                 anchors.fill: parent
 
                 // TODO: hardcoding
-                Component.onCompleted: { cam.deviceId = 0; }
+                Component.onCompleted: { cam.deviceId = 0; mode = settings.mode; }
 
                 // TODO: Hack
                 z: -1