mirror of
https://github.com/transmission/transmission
synced 2024-12-27 18:18:10 +00:00
check that download isn't set to -1 (from very old version)
This commit is contained in:
parent
b51cd1233c
commit
b3e8a9f5e8
1 changed files with 6 additions and 1 deletions
|
@ -56,12 +56,17 @@
|
|||
fDefaults = [NSUserDefaults standardUserDefaults];
|
||||
fHandle = handle;
|
||||
|
||||
//checks for old version upload speed of -1
|
||||
//checks for old version speeds of -1
|
||||
if ([fDefaults integerForKey: @"UploadLimit"] < 0)
|
||||
{
|
||||
[fDefaults setInteger: 20 forKey: @"UploadLimit"];
|
||||
[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
|
||||
NSString * choice;
|
||||
|
|
Loading…
Reference in a new issue