1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

(gtk) #694: Forgets pause state after restart

This commit is contained in:
Charles Kerr 2008-02-08 03:00:19 +00:00
parent a98cd524e1
commit 2cf2c33318

View file

@ -479,7 +479,7 @@ tr_core_insert( TrCore * self, TrTorrent * tor )
}
int
tr_core_load( TrCore * self, gboolean paused )
tr_core_load( TrCore * self, gboolean forcePaused )
{
int i;
int count = 0;
@ -492,7 +492,8 @@ tr_core_load( TrCore * self, gboolean paused )
path = getdownloaddir( );
ctor = tr_ctorNew( self->handle );
tr_ctorSetPaused( ctor, TR_FORCE, paused );
if( forcePaused )
tr_ctorSetPaused( ctor, TR_FORCE, TRUE );
tr_ctorSetDestination( ctor, TR_FALLBACK, path );
tr_ctorSetMaxConnectedPeers( ctor, TR_FALLBACK, pref_int_get( PREF_KEY_MAX_PEERS_PER_TORRENT ) );