Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Commit

Permalink
Update menubar sensors then changing temperature units
Browse files Browse the repository at this point in the history
  • Loading branch information
CozmoNate committed Nov 29, 2013
1 parent a65f332 commit 2d790ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion HWMonitor/StatusItemView.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ -(id)initWithFrame:(NSRect)rect statusItem:(NSStatusItem *)statusItem;
[self addObserver:self forKeyPath:@"monitorEngine.configuration.favorites" options:NSKeyValueObservingOptionNew context:nil];
[self addObserver:self forKeyPath:@"monitorEngine.configuration.useBigFontInMenubar" options:NSKeyValueObservingOptionNew context:nil];
[self addObserver:self forKeyPath:@"monitorEngine.configuration.useShadowEffectsInMenubar" options:NSKeyValueObservingOptionNew context:nil];
[self addObserver:self forKeyPath:@"monitorEngine.configuration.useFahrenheit" options:NSKeyValueObservingOptionNew context:nil];
}];
}

Expand All @@ -98,6 +99,7 @@ -(void)dealloc
[self removeObserver:self forKeyPath:@"monitorEngine.configuration.favorites"];
[self removeObserver:self forKeyPath:@"monitorEngine.configuration.useBigFontInMenubar"];
[self removeObserver:self forKeyPath:@"monitorEngine.configuration.useShadowEffectsInMenubar"];
[self removeObserver:self forKeyPath:@"monitorEngine.configuration.useFahrenheit"];

[[NSNotificationCenter defaultCenter] removeObserver:self];
}
Expand Down Expand Up @@ -285,7 +287,8 @@ -(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NS
{
if ([keyPath isEqualToString:@"monitorEngine.configuration.favorites"] ||
[keyPath isEqualToString:@"monitorEngine.configuration.useBigFontInMenubar"] ||
[keyPath isEqualToString:@"monitorEngine.configuration.useShadowEffectsInMenubar"]) {
[keyPath isEqualToString:@"monitorEngine.configuration.useShadowEffectsInMenubar"] ||
[keyPath isEqualToString:@"monitorEngine.configuration.useFahrenheit"]) {

[self refresh];

Expand Down

0 comments on commit 2d790ac

Please sign in to comment.