mirror of
https://github.com/transmission/transmission
synced 2025-03-06 19:48:15 +00:00
(trunk) have the gtk and qt clients use the same minimum seed ratio in the preferences dialog as the mac uses
This commit is contained in:
parent
58de1f4317
commit
afe11e1386
4 changed files with 8 additions and 8 deletions
|
@ -310,7 +310,7 @@ torrentPage( GObject * core )
|
|||
|
||||
s = _( "_Stop seeding torrents at ratio:" );
|
||||
w = new_check_button( s, TR_PREFS_KEY_RATIO_ENABLED, core );
|
||||
w2 = new_spin_button_double( TR_PREFS_KEY_RATIO, core, .5, INT_MAX, .05 );
|
||||
w2 = new_spin_button_double( TR_PREFS_KEY_RATIO, core, 0, INT_MAX, .05 );
|
||||
gtk_widget_set_sensitive( GTK_WIDGET( w2 ), pref_flag_get( TR_PREFS_KEY_RATIO_ENABLED ) );
|
||||
g_signal_connect( w, "toggled", G_CALLBACK( target_cb ), w2 );
|
||||
hig_workarea_add_row_w( t, &row, w, w2, NULL );
|
||||
|
|
|
@ -548,7 +548,7 @@ PrefsDialog :: createTorrentsTab( )
|
|||
hig->addSectionTitle( tr( "Limits" ) );
|
||||
|
||||
l = checkBoxNew( tr( "&Stop seeding torrents at ratio:" ), Prefs::RATIO_ENABLED );
|
||||
r = doubleSpinBoxNew( Prefs::RATIO, 0.5, INT_MAX, 0.5, 2 );
|
||||
r = doubleSpinBoxNew( Prefs::RATIO, 0, INT_MAX, 0.5, 2 );
|
||||
hig->addRow( l, r );
|
||||
enableBuddyWhenChecked( qobject_cast<QCheckBox*>(l), r );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue