On Thu Aug 21 10:16:26 2025 +0000, Ivan Lyugaev wrote:
changed this line in version 7 of the diff
When a string parameter is set in the sane_option_set_value function, it becomes impossible to retrieve the number of parameters in the sane_option_get_value function. This is likely an internal feature of sane.
This was added to correctly display the loaded parameters. Without this change, the tab had to be refreshed, which was inconvenient.
In my opinion, it is safe to use this, as my gOptCount variable is updated every time the optcount is successfully received in the sane_option_get_value( 0, &optcount ) function, which is called in DoScannerUi and InitializeDialog