Fix issue with mouseDown:

This commit is contained in:
Gregory John Casamento 2020-04-21 23:41:13 -04:00
parent ec3227d132
commit b3ac2b292b

View file

@ -135,7 +135,12 @@
- (void) mouseDown: (NSEvent *)event
{
[super mouseDown: event];
if (![self isEnabled])
{
[super mouseDown: event];
return;
}
if (_state == NSControlStateValueOn)
{
[self setState: NSControlStateValueOff];