On Sun Jun 23 04:33:13 2024 +0000, Ilia Docin wrote:
Yea, it was. Scanner might not support "Auto" or ADF sources recommended by TWAIN spec as default values. In that case the command will cause an error. My fix also try to set "Auto" or ADF sources as primary default option, but additionally checks if the modes are supported.
If I understand correctly (and there's a lot here that I could be confused about), we're supposed to return the value that this was set to, and this will return `enabled` which is the previous value. So I think we should set `enabled = val` if setting the option succeeds.