(trunk T) add preliminary enable/disable toggles in daemon, gtk, and qt clients. 'preliminary' because this may be widened to a tri-state of inabled, disabled, and incoming only

This commit is contained in:
Jordan Lee
2011-02-18 00:33:29 +00:00
parent c4b1d1e6c5
commit 3f1b060241
9 changed files with 35 additions and 1 deletions

View File

@@ -1451,6 +1451,10 @@ on_prefs_changed( TrCore * core UNUSED, const char * key, gpointer data )
{
tr_sessionSetDHTEnabled( tr, gtr_pref_flag_get( key ) );
}
else if( !strcmp( key, TR_PREFS_KEY_UTP_ENABLED ) )
{
tr_sessionSetUTPEnabled( tr, gtr_pref_flag_get( key ) );
}
else if( !strcmp( key, TR_PREFS_KEY_LPD_ENABLED ) )
{
tr_sessionSetLPDEnabled( tr, gtr_pref_flag_get( key ) );