Since I am implementing sound themes to events, the sound is played automatically once the application runs - if SelectedChange is set to True.
Sound is played each time it is changed. Any clever advice how to prevent sound to play at first runtime cycle?
EDIT I've made an example that illustrates the problem.
Note that state.dat is saved to drive D:\ in v1.0
v1.0 is the first example that doesn't have any Bool checking.
v1.1 implements bool check but the sound does not play at first click (when state is Disabled)
v1.2 I finally nailed it, it works yay
Sound is played each time it is changed. Any clever advice how to prevent sound to play at first runtime cycle?
EDIT I've made an example that illustrates the problem.
Note that state.dat is saved to drive D:\ in v1.0
v1.0 is the first example that doesn't have any Bool checking.
v1.1 implements bool check but the sound does not play at first click (when state is Disabled)
v1.2 I finally nailed it, it works yay
Attachments
Last edited: