Hide flash settings and indicator when front camera is active
authorMohammed Sameer <msameer@foolab.org>
Mon, 12 Aug 2013 18:55:57 +0000 (21:55 +0300)
committerMohammed Sameer <msameer@foolab.org>
Mon, 12 Aug 2013 18:55:57 +0000 (21:55 +0300)
qml/ImageOverlay.qml

index 415a0c3..a41d838 100644 (file)
@@ -128,6 +128,7 @@ Item {
         tools: CameraToolBarTools {
             FlashButton {
                 onClicked: toolBar.push(tools)
+                visible: cam.device == 0
             }
 
             ImageSceneButton {
@@ -173,7 +174,7 @@ Item {
 
             Indicator {
                 id: flashIndicator
-                visible: !toolBar.expanded
+                visible: !toolBar.expanded && cam.device == 0
                 source: cameraTheme.flashIcon(settings.imageFlashMode)
             }