https://bugs.winehq.org/show_bug.cgi?id=35312
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fgouget@codeweavers.com
--- Comment #1 from François Gouget fgouget@codeweavers.com --- I'd argue that 'Toggle' means 'inverse the current state'. So toggling a switch does not mean turning it on but setting it to the other position, which may either be on or off.
But then I may agree with you that 'toggle' is not necessarily what we want here. It may make more sense to have something that checks everything if one box was unchecked, and otherwise unchecks everything. I believe that's how gmail's global selection checkbox works for instance.
Finally, regarding the proposed code I don't think using a global variable is a good idea. Fortunately it should not be needed.