(trunk libT) #2907 "speed limit mode not retained after relaunch" -- fixed in trunk for 1.90
This commit is contained in:
parent
b592efc5b9
commit
653537f8d7
|
@ -778,6 +778,8 @@ sessionSetImpl( void * vdata )
|
|||
turtle->days = i;
|
||||
if( tr_bencDictFindBool( settings, TR_PREFS_KEY_ALT_SPEED_TIME_ENABLED, &boolVal ) )
|
||||
turtle->isClockEnabled = boolVal;
|
||||
if( tr_bencDictFindBool( settings, TR_PREFS_KEY_ALT_SPEED_ENABLED, &boolVal ) )
|
||||
turtle->isEnabled = boolVal;
|
||||
turtleBootstrap( session, turtle );
|
||||
|
||||
data->done = TRUE;
|
||||
|
@ -1181,7 +1183,12 @@ turtleBootstrap( tr_session * session, struct tr_turtle_info * turtle )
|
|||
tr_bool isEnabled;
|
||||
|
||||
turtleFindNextChange( turtle );
|
||||
isEnabled = turtle->isClockEnabled && !turtle->_nextChangeValue;
|
||||
|
||||
if( turtle->isClockEnabled )
|
||||
isEnabled = !turtle->_nextChangeValue;
|
||||
else
|
||||
isEnabled = turtle->isEnabled;
|
||||
|
||||
useAltSpeed( session, turtle, isEnabled, FALSE );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue