mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
use tr_loadTorrents() during startup.
This commit is contained in:
15
gtk/main.c
15
gtk/main.c
@@ -412,10 +412,8 @@ appsetup( TrWindow * wind, benc_val_t * state, GList * args,
|
||||
readinitialprefs( cbdata );
|
||||
|
||||
/* add torrents from command-line and saved state */
|
||||
if( NULL != state )
|
||||
{
|
||||
tr_core_load( cbdata->core, state, paused );
|
||||
}
|
||||
tr_core_load( cbdata->core, paused );
|
||||
|
||||
if( NULL != args )
|
||||
{
|
||||
action = toraddaction( tr_prefs_get( PREF_ID_ADDIPC ) );
|
||||
@@ -735,7 +733,9 @@ readinitialprefs( struct cbdata * cbdata )
|
||||
int prefs[] =
|
||||
{
|
||||
PREF_ID_PORT,
|
||||
PREF_ID_DOWNLIMIT,
|
||||
PREF_ID_USEDOWNLIMIT,
|
||||
PREF_ID_UPLIMIT,
|
||||
PREF_ID_USEUPLIMIT,
|
||||
PREF_ID_NAT,
|
||||
PREF_ID_ICON,
|
||||
@@ -752,13 +752,10 @@ readinitialprefs( struct cbdata * cbdata )
|
||||
static void
|
||||
prefschanged( TrCore * core SHUTUP, int id, gpointer data )
|
||||
{
|
||||
struct cbdata * cbdata;
|
||||
tr_handle_t * tr;
|
||||
struct cbdata * cbdata = data;
|
||||
tr_handle_t * tr = tr_core_handle( cbdata->core );
|
||||
gboolean boolval;
|
||||
|
||||
cbdata = data;
|
||||
tr = tr_core_handle( cbdata->core );
|
||||
|
||||
switch( id )
|
||||
{
|
||||
case PREF_ID_PORT:
|
||||
|
||||
Reference in New Issue
Block a user