Browse Source

Removing battery hogging code.

v1.2.4
Abhishek Banthia 8 years ago
parent
commit
d9214c21e5
  1. 32
      Clocker/StatusItemView.m

32
Clocker/StatusItemView.m

@ -140,8 +140,6 @@
}
#pragma mark -
#pragma mark Mouse tracking
@ -150,36 +148,6 @@
[NSApp sendAction:self.action to:self.target from:self];
}
#pragma mark -
#pragma mark Accessors
- (void)setHighlighted:(BOOL)newFlag
{
if (_isHighlighted == newFlag) return;
_isHighlighted = newFlag;
[self setNeedsDisplay:YES];
}
#pragma mark -
- (void)setImage:(NSImage *)newImage
{
if (_image != newImage) {
_image = newImage;
[self setNeedsDisplay:YES];
}
}
- (void)setAlternateImage:(NSImage *)newImage
{
if (_alternateImage != newImage) {
_alternateImage = newImage;
if (self.isHighlighted) {
[self setNeedsDisplay:YES];
}
}
}
#pragma mark -
- (NSRect)globalRect

Loading…
Cancel
Save