Browse Source

Boundary case handling.

v1.2.4
Abhishek Banthia 8 years ago
parent
commit
04da7041b8
  1. 11
      Clocker/Floating Window/CLFloatingWindowController.m
  2. 12
      Clocker/PanelController.m

11
Clocker/Floating Window/CLFloatingWindowController.m

@ -159,7 +159,16 @@ NSString *const CLTimezoneCellIdentifier = @"timeZoneCell";
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];

12
Clocker/PanelController.m

@ -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];

Loading…
Cancel
Save