mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
(trunk gtk) #4080 "Toggling speed limit mode from the web interface doesn't affect GUI" -- fixed.
This commit is contained in:
parent
b10aea6fcc
commit
9283ef2ebb
3 changed files with 7 additions and 4 deletions
|
@ -522,7 +522,7 @@ on_rpc_changed( tr_session * session,
|
|||
tr_sessionGetSettings( session, oldvals );
|
||||
|
||||
for( l=changed_keys; l!=NULL; l=l->next )
|
||||
on_prefs_changed( cbdata->core, key, cbdata );
|
||||
gtr_core_pref_changed( cbdata->core, l->data );
|
||||
|
||||
g_slist_free( changed_keys );
|
||||
tr_bencFree( &tmp );
|
||||
|
|
|
@ -316,8 +316,8 @@ core_emit_busy( TrCore * core, gboolean is_busy )
|
|||
g_signal_emit( core, core_signals[BUSY_SIGNAL], 0, is_busy );
|
||||
}
|
||||
|
||||
static inline void
|
||||
core_emit_prefs_changed( TrCore * core, const char * key )
|
||||
void
|
||||
gtr_core_pref_changed( TrCore * core, const char * key )
|
||||
{
|
||||
g_signal_emit( core, core_signals[PREFS_SIGNAL], 0, key );
|
||||
}
|
||||
|
@ -1573,7 +1573,7 @@ core_maybe_inhibit_hibernation( TrCore * core )
|
|||
static void
|
||||
core_commit_prefs_change( TrCore * core, const char * key )
|
||||
{
|
||||
core_emit_prefs_changed( core, key );
|
||||
gtr_core_pref_changed( core, key );
|
||||
gtr_pref_save( gtr_core_session( core ) );
|
||||
}
|
||||
|
||||
|
|
|
@ -86,6 +86,9 @@ size_t gtr_core_get_torrent_count( TrCore * self );
|
|||
|
||||
tr_torrent * gtr_core_find_torrent( TrCore * core, int id );
|
||||
|
||||
void gtr_core_pref_changed( TrCore * core, const char * key );
|
||||
|
||||
|
||||
/******
|
||||
*******
|
||||
******/
|
||||
|
|
Loading…
Reference in a new issue