mirror of
https://github.com/ksherlock/ample.git
synced 2025-01-23 15:30:08 +00:00
tweak eject button tracking instantiation
This commit is contained in:
parent
0a78177485
commit
a829b4feea
@ -29,7 +29,13 @@ static NSImage *ejectHoverImage = nil;
|
||||
[self setButtonType: NSButtonTypeMomentaryPushIn];
|
||||
[self setImage: ejectImage];
|
||||
[self setAlternateImage: ejectHoverImage];
|
||||
// _tracking = [self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
|
||||
}
|
||||
|
||||
-(void)viewDidMoveToWindow {
|
||||
if (!_tracking)
|
||||
_tracking = [self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
|
||||
|
||||
}
|
||||
|
||||
-(void)mouseEntered:(NSEvent *)event {
|
||||
|
Loading…
x
Reference in New Issue
Block a user