mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
(gtk) #694: Forgets pause state after restart
This commit is contained in:
parent
a98cd524e1
commit
2cf2c33318
1 changed files with 3 additions and 2 deletions
|
@ -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 ) );
|
||||
|
||||
|
|
Loading…
Reference in a new issue