Toggle buttons toggles with a press event, not with a click event!
So handle the states according to this fact.
Merge pull request #737 from fenyo1/GraphTogglesFix

Toggle buttons toggle with a press event, not with a click event!