mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
allow preferences to set encryption, commented out for now
This commit is contained in:
parent
dd5817ac0a
commit
4932e8eb0e
5 changed files with 12 additions and 1 deletions
1
macosx/English.lproj/PrefsWindow.nib/classes.nib
generated
1
macosx/English.lproj/PrefsWindow.nib/classes.nib
generated
|
@ -18,6 +18,7 @@
|
||||||
setBadge = id;
|
setBadge = id;
|
||||||
setCheckForUpdate = id;
|
setCheckForUpdate = id;
|
||||||
setDownloadLocation = id;
|
setDownloadLocation = id;
|
||||||
|
setEncryptionRequired = id;
|
||||||
setGlobalLimit = id;
|
setGlobalLimit = id;
|
||||||
setNat = id;
|
setNat = id;
|
||||||
setPort = id;
|
setPort = id;
|
||||||
|
|
2
macosx/English.lproj/PrefsWindow.nib/info.nib
generated
2
macosx/English.lproj/PrefsWindow.nib/info.nib
generated
|
@ -23,7 +23,7 @@
|
||||||
</array>
|
</array>
|
||||||
<key>IBOpenObjects</key>
|
<key>IBOpenObjects</key>
|
||||||
<array>
|
<array>
|
||||||
<integer>41</integer>
|
<integer>66</integer>
|
||||||
</array>
|
</array>
|
||||||
<key>IBSystem Version</key>
|
<key>IBSystem Version</key>
|
||||||
<string>8R4031</string>
|
<string>8R4031</string>
|
||||||
|
|
BIN
macosx/English.lproj/PrefsWindow.nib/keyedobjects.nib
generated
BIN
macosx/English.lproj/PrefsWindow.nib/keyedobjects.nib
generated
Binary file not shown.
|
@ -64,6 +64,8 @@
|
||||||
- (NSArray *) sounds;
|
- (NSArray *) sounds;
|
||||||
- (void) setSound: (id) sender;
|
- (void) setSound: (id) sender;
|
||||||
|
|
||||||
|
- (void) setEncryptionRequired: (id) sender;
|
||||||
|
|
||||||
- (void) setBadge: (id) sender;
|
- (void) setBadge: (id) sender;
|
||||||
- (void) resetWarnings: (id) sender;
|
- (void) resetWarnings: (id) sender;
|
||||||
- (void) setCheckForUpdate: (id) sender;
|
- (void) setCheckForUpdate: (id) sender;
|
||||||
|
|
|
@ -78,6 +78,9 @@
|
||||||
//set NAT
|
//set NAT
|
||||||
tr_natTraversalEnable(fHandle, [fDefaults boolForKey: @"NatTraversal"]);
|
tr_natTraversalEnable(fHandle, [fDefaults boolForKey: @"NatTraversal"]);
|
||||||
|
|
||||||
|
//set encryption
|
||||||
|
//tr_setEncryptionMode(fHandle, [fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED);
|
||||||
|
|
||||||
//actually set bandwidth limits
|
//actually set bandwidth limits
|
||||||
[self applySpeedSettings: nil];
|
[self applySpeedSettings: nil];
|
||||||
}
|
}
|
||||||
|
@ -336,6 +339,11 @@
|
||||||
[sound play];
|
[sound play];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) setEncryptionRequired: (id) sender
|
||||||
|
{
|
||||||
|
//tr_setEncryptionMode(fHandle, [fDefaults boolForKey: @"EncryptionRequire"] ? TR_ENCRYPTION_REQUIRED : TR_ENCRYPTION_PREFERRED);
|
||||||
|
}
|
||||||
|
|
||||||
- (void) applySpeedSettings: (id) sender
|
- (void) applySpeedSettings: (id) sender
|
||||||
{
|
{
|
||||||
if ([fDefaults boolForKey: @"SpeedLimit"])
|
if ([fDefaults boolForKey: @"SpeedLimit"])
|
||||||
|
|
Loading…
Reference in a new issue