update mac gui to recognize global pex

This commit is contained in:
Mitchell Livingston
2007-12-24 05:05:56 +00:00
parent 401cfbdb6b
commit 8c22757404
11 changed files with 5051 additions and 5016 deletions

View File

@@ -81,6 +81,9 @@
//set peer connection values
tr_setGlobalPeerLimit(fHandle, [fDefaults integerForKey: @"PeersGlobal"]);
//set pex
[self setPEX: nil];
//set encryption
[self setEncryptionMode: nil];
@@ -340,6 +343,11 @@
[fDefaults setInteger: count forKey: @"PeersTorrent"];
}
- (void) setPEX: (id) sender
{
tr_setPexEnabled(fHandle, [fDefaults boolForKey: @"PEXGlobal"]);
}
- (void) setEncryptionMode: (id) sender
{
tr_setEncryptionMode(fHandle, [fDefaults boolForKey: @"EncryptionPrefer"] ?