benini / scid

Other
44 stars 15 forks source link

Fixed Resources window attempting to load sound files without snack. #163

Open scidfork opened 10 months ago

scidfork commented 10 months ago

When selecting a sound folder in the Resources window, it would attempt to load the sounds even if it determined than snack was not available at startup. Now, it still allows the folder selection, but if snack is not available, it will simply pop up a message that informs you that sounds are disabled instead of attempting to load them.

benini commented 10 months ago

Attention must be paid when copying existing code because it might not be particularly good. In this case, instead of duplicating the use of .resDialog, it would be better to eliminate the existing one as well. Moreover, with a quick search, I couldn't find where the OptionsDialogOK function is used.