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 if (self.messageLabel.stringValue.length == 0)
andLongitude:dataObject.longitude]; {
self.searchField.stringValue = CLEmptyString;
[self getTimeZoneForLatitude:dataObject.latitude
andLongitude:dataObject.longitude];
}
} }
else else
{ {
@ -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