Re: [PATCH v13 0/1] MR8778: sane.ds: Adding a window for loading and saving the scanner configuration
19 Aug
2025
19 Aug
'25
4:23 p.m.
Esme Povirk (@madewokherd) commented about dlls/sane.ds/ui.c:
+ BOOL is_exist = load_from_file(path, opt.type, title, &b); + + if (is_exist) + { + sane_option_set_value( i, &b, NULL ); + } + sane_option_get_value( i, &b ); + if (b) + { SendMessageA(control,BM_SETCHECK,BST_CHECKED,0); - + continue; + } + SendMessageA(control,BM_SETCHECK,BST_UNCHECKED,0); This could be simplified to `SendMessageA(control,BM_SETCHECK,b ? BST_CHECKED : BST_UNCHECKED,0);`
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/8778#note_113177
198
Age (days ago)
198
Last active (days ago)
0 comments
1 participants
participants (1)
-
Esme Povirk (@madewokherd)