Ignore:
Timestamp:
May 21, 2009, 4:35:40 AM (13 years ago)
Author:
livings124
Message:

add button for DHT in Mac prefs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r8156 r8461  
    465465}
    466466
     467- (void) setDHT: (id) sender
     468{
     469    tr_sessionSetDHTEnabled(fHandle, [fDefaults boolForKey: @"DHTGlobal"]);
     470}
     471
    467472- (void) setEncryptionMode: (id) sender
    468473{
     
    10851090    [fDefaults setBool: pex forKey: @"PEXGlobal"];
    10861091   
     1092    //dht
     1093    const BOOL dht = tr_sessionIsDHTEnabled(fHandle);
     1094    [fDefaults setBool: dht forKey: @"DHTGlobal"];
     1095   
    10871096    //port
    10881097    const tr_port port = tr_sessionGetPeerPort(fHandle);
     
    11601169       
    11611170        //pex handled by bindings
     1171       
     1172        //dht handled by bindings
    11621173       
    11631174        [fPortField setIntValue: port];
Note: See TracChangeset for help on using the changeset viewer.