mirror of
https://github.com/transmission/transmission
synced 2025-02-22 22:20:39 +00:00
(qt) #3275: Seed ratio limit and ratio limit enabled are currently not pulled from a remote session
This commit is contained in:
parent
bc71c7753b
commit
c19f73f77e
1 changed files with 7 additions and 0 deletions
|
@ -824,6 +824,13 @@ Session :: updateInfo( tr_benc * d )
|
|||
}
|
||||
}
|
||||
|
||||
tr_bool b;
|
||||
double x;
|
||||
if( tr_bencDictFindBool( d, "seedRatioLimited", &b ) )
|
||||
myPrefs.set( Prefs::RATIO_ENABLED, b ? true : false );
|
||||
if( tr_bencDictFindReal( d, "seedRatioLimit", &x ) )
|
||||
myPrefs.set( Prefs::RATIO, x );
|
||||
|
||||
/* Use the C API to get settings that, for security reasons, aren't supported by RPC */
|
||||
if( mySession != 0 )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue