1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-28 10:38:45 +00:00

check that download isn't set to -1 (from very old version)

This commit is contained in:
Mitchell Livingston 2008-01-06 17:52:28 +00:00
parent b51cd1233c
commit b3e8a9f5e8

View file

@ -56,12 +56,17 @@
fDefaults = [NSUserDefaults standardUserDefaults]; fDefaults = [NSUserDefaults standardUserDefaults];
fHandle = handle; fHandle = handle;
//checks for old version upload speed of -1 //checks for old version speeds of -1
if ([fDefaults integerForKey: @"UploadLimit"] < 0) if ([fDefaults integerForKey: @"UploadLimit"] < 0)
{ {
[fDefaults setInteger: 20 forKey: @"UploadLimit"]; [fDefaults setInteger: 20 forKey: @"UploadLimit"];
[fDefaults setBool: NO forKey: @"CheckUpload"]; [fDefaults setBool: NO forKey: @"CheckUpload"];
} }
if ([fDefaults integerForKey: @"DownloadLimit"] < 0)
{
[fDefaults setInteger: 20 forKey: @"DownloadLimit"];
[fDefaults setBool: NO forKey: @"CheckDownload"];
}
//check for old version download location //check for old version download location
NSString * choice; NSString * choice;