Skip to content
This repository has been archived by the owner on Sep 3, 2023. It is now read-only.

Commit

Permalink
Fix detect temp. enabled of startup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Klymenko authored and Volodymyr Klymenko committed Jan 30, 2018
1 parent 0c0fc28 commit 684a8df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions NativeDisplayBrightness/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,7 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
//this for some reason not work..will just remove
//self.colorTemperatureMenu.hidden = !APP_DELEGATE.adjustColorTemperature;

StatusData status;
[self.blueLight getBlueLightStatus:&status];
if (!status.enabled) {
if (!APP_DELEGATE.adjustColorTemperature) {
[self.statusBarMenu removeItem:self.colorTemperatureMenu];
} else {
float curStrength;
Expand Down
1 change: 1 addition & 0 deletions NativeDisplayBrightness/ColorTemperatureViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ - (void)viewDidLoad {
self.adjustColorTemperature.state = NSOnState;
} else {
self.adjustColorTemperature.state = NSOffState;
self.sliderColorTemperature.enabled = NO;
}
self.sliderColorTemperature.maxValue = APP_DELEGATE.colorTemperatureLimit;
}
Expand Down

0 comments on commit 684a8df

Please sign in to comment.