better preservation of old download location

This commit is contained in:
Mitchell Livingston
2008-01-05 01:48:55 +00:00
parent f50bde4f27
commit f2a6d79928
2 changed files with 10 additions and 7 deletions

View File

@@ -63,6 +63,16 @@
[fDefaults setBool: NO forKey: @"CheckUpload"];
}
//check for old version download location
if ([fDefaults stringForKey: @"DownloadChoice"])
{
NSString * choice = [fDefaults stringForKey: @"DownloadChoice"];
[fDefaults setBool: [choice isEqualToString: @"Constant"] forKey: @"DownloadLocationConstant"];
[fDefaults setBool: [choice isEqualToString: @"Ask"] forKey: @"DownloadAsk"];
[fDefaults removeObjectForKey: @"DownloadChoice"];
}
//set check for update to right value
[self setCheckForUpdate: nil];