// loop for checked if we bind the checked property to the settings value.
Component.onCompleted: checked = settings.faceDetectionEnabled
onCheckedChanged: settings.faceDetectionEnabled = checked
- visible: !camera.quirks.hasQuirk(Quirks.NoFaceDetection)
+ visible: camera ? !camera.quirks.hasQuirk(Quirks.NoFaceDetection) : false
}
CameraSettings {
tools: CameraToolBarTools {
FlashButton {
onClicked: toolBar.push(tools)
- visible: !overlay.cam.quirks.hasQuirk(Quirks.NoFlash)
+ visible: overlay.cam ? !overlay.cam.quirks.hasQuirk(Quirks.NoFlash) : false
}
ImageSceneButton {
tools: CameraToolBarTools {
VideoTorchButton {
camera: cam
- visible: !overlay.cam.quirks.hasQuirk(Quirks.NoVideoTorch)
+ visible: overlay.cam ? !overlay.cam.quirks.hasQuirk(Quirks.NoVideoTorch) : false
}
VideoSceneButton {
- property bool hide: (overlay.recording && overlay.cam.quirks.hasQuirk(Quirks.NoSceneModeChangeDuringRecording)) || overlay.cam.quirks.hasQuirk(Quirks.NoNightSceneMode)
+ property bool hide: overlay.cam ? (overlay.recording && overlay.cam.quirks.hasQuirk(Quirks.NoSceneModeChangeDuringRecording)) || overlay.cam.quirks.hasQuirk(Quirks.NoNightSceneMode) : false
visible: !hide
onClicked: toolBar.push(tools)
}