Browse Source

Already selected message.

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

15
Clocker/Preferences/CLPreferencesViewController.m

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

Loading…
Cancel
Save