|
|
|
@ -332,7 +332,16 @@ static PanelController *sharedPanel = nil;
|
|
|
|
|
|
|
|
|
|
cell.sunriseSetImage.hidden = [displaySunriseSunsetTime isEqualToNumber:@(0)] && cell.sunriseSetTime.stringValue.length > 0 ? NO : YES; |
|
|
|
|
|
|
|
|
|
[cell setUpAutoLayoutWithCell:cell]; |
|
|
|
|
/*WE hide the Sunrise or set details because of chances of incorrect date calculations |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
if (self.futureSliderValue > 0) |
|
|
|
|
{ |
|
|
|
|
cell.sunriseSetImage.hidden = YES; |
|
|
|
|
cell.sunriseSetTime.hidden = YES; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
[cell setUpAutoLayoutWithCell]; |
|
|
|
|
|
|
|
|
|
[cell setAppropriateFont]; |
|
|
|
|
|
|
|
|
@ -393,6 +402,7 @@ static PanelController *sharedPanel = nil;
|
|
|
|
|
|
|
|
|
|
- (IBAction)openPreferences:(id)sender |
|
|
|
|
{ |
|
|
|
|
// [self.mainTableview abortEditing]; |
|
|
|
|
self.oneWindow = [CLOneWindowController sharedWindow]; |
|
|
|
|
[self.oneWindow showWindow:nil]; |
|
|
|
|
[NSApp activateIgnoringOtherApps:YES]; |
|
|
|
|