Browse Source

Already selected message.

v1.4.1
Abhishek Banthia 8 years ago
parent
commit
f97841a282
  1. 9
      Clocker/Preferences/CLPreferencesViewController.m

9
Clocker/Preferences/CLPreferencesViewController.m

@ -428,11 +428,16 @@ NSString *const CLTryAgainMessage = @"Try again, maybe?";
}]; }];
if (self.messageLabel.stringValue.length == 0)
{
self.searchField.stringValue = CLEmptyString; self.searchField.stringValue = CLEmptyString;
[self getTimeZoneForLatitude:dataObject.latitude [self getTimeZoneForLatitude:dataObject.latitude
andLongitude:dataObject.longitude]; andLongitude:dataObject.longitude];
} }
}
else else
{ {
CLTimezoneData *data = [CLTimezoneData new]; CLTimezoneData *data = [CLTimezoneData new];
@ -735,7 +740,7 @@ NSString *const CLTryAgainMessage = @"Try again, maybe?";
NSDictionary *totalPackage = @{@"latitude":latitude, NSDictionary *totalPackage = @{@"latitude":latitude,
@"longitude" : longitude, @"longitude" : longitude,
CLTimezoneName:formattedAddress, CLTimezoneName:formattedAddress,
CLCustomLabel: CLEmptyString, CLCustomLabel: formattedAddress,
CLTimezoneID : CLEmptyString, CLTimezoneID : CLEmptyString,
CLPlaceIdentifier : dictionary[CLPlaceIdentifier]}; CLPlaceIdentifier : dictionary[CLPlaceIdentifier]};
@ -805,7 +810,7 @@ NSString *const CLTryAgainMessage = @"Try again, maybe?";
newTimezone[@"latitude"] = dataObject.latitude; newTimezone[@"latitude"] = dataObject.latitude;
newTimezone[@"longitude"] = dataObject.longitude; newTimezone[@"longitude"] = dataObject.longitude;
newTimezone[@"nextUpdate"] = CLEmptyString; newTimezone[@"nextUpdate"] = CLEmptyString;
newTimezone[CLCustomLabel] = CLEmptyString; newTimezone[CLCustomLabel] = filteredAddress;
CLTimezoneData *timezoneObject = [[CLTimezoneData alloc] initWithDictionary:newTimezone]; CLTimezoneData *timezoneObject = [[CLTimezoneData alloc] initWithDictionary:newTimezone];

Loading…
Cancel
Save