Show error MessageDialog to user when got invalid QR code
Currently, when Decoder gets an invalid QR code (with Scan
-> From a Screenshot
), it just silently fails with this log to console:
2023-04-23T17:05:47.121197Z ERROR decoder::widgets::camera_page::imp: Could not take screenshot: Invalid QR code
And users have no idea what actually happens if they don't start Decoder from console.
Example invalid QR code (I got this picture from some discussions online, and this invalid one could actually crash some other QR code parsers):
Edited by Keyu Tao