1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

(trunk gtk) fix #4849 'Transmission-gtk Ignores Notification Sound Setting' with a patch from Jan Varho

This commit is contained in:
Jordan Lee 2012-04-07 00:30:37 +00:00
parent 001813c364
commit 32f3186f84

View file

@ -189,6 +189,8 @@ gtr_notify_torrent_completed( TrCore * core, int torrent_id )
TrNotification * n; TrNotification * n;
tr_torrent * tor; tr_torrent * tor;
const char * cmd = gtr_pref_string_get( PREF_KEY_TORRENT_COMPLETE_SOUND_COMMAND ); const char * cmd = gtr_pref_string_get( PREF_KEY_TORRENT_COMPLETE_SOUND_COMMAND );
if( gtr_pref_flag_get( PREF_KEY_TORRENT_COMPLETE_SOUND_ENABLED ) )
g_spawn_command_line_async( cmd, NULL ); g_spawn_command_line_async( cmd, NULL );
if( ! gtr_pref_flag_get( PREF_KEY_TORRENT_COMPLETE_NOTIFICATION_ENABLED ) ) if( ! gtr_pref_flag_get( PREF_KEY_TORRENT_COMPLETE_NOTIFICATION_ENABLED ) )