Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 083bb988 authored by Sebastian Pettke's avatar Sebastian Pettke

Improve image capture error handling

parent 869ecb05
......@@ -310,8 +310,13 @@ Kirigami.Page {
running = false
if (camera.captureMode === Camera.CaptureStillImage) {
camera.imageCapture.capture()
showPassiveNotification(i18n("Took a photo"))
if (camera.imageCapture.ready) {
camera.imageCapture.capture()
showPassiveNotification(i18n("Took a photo"))
}
else {
showPassiveNotification(i18n("Failed to take a photo"))
}
}
else if (camera.videoRecorder.recorderStatus === CameraRecorder.RecordingStatus) {
camera.videoRecorder.stop()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment