Toggle Music On/Off From UI Widget

in the function you had originally, on the B branch of the flip flop, you took the reference to the music and called Stop on it.

You can do the same thing from the False branch. So the only change to your original code is to replace flip flop with a boolean and branch.

1 Like