Increase the per-torrent stop share ratio max to 99999.0 and make the

spinner and remove at ratio checkbox insensitive if stop at ratio not 
checked
This commit is contained in:
Andrew Resch 2008-11-08 06:17:42 +00:00
commit 43c8d0ead2
3 changed files with 618 additions and 652 deletions

View file

@ -1,4 +1,10 @@
Deluge 1.0.5 (In Development)
GtkUI:
* Increase the per-torrent stop share ratio max to 99999.0
WebUi:
* Javascript auto refresh for both templates.
Windows:
* Fix #577 adding torrents by drag n' drop
@ -17,9 +23,6 @@ Deluge 1.0.4 (31 October 2008)
Windows:
* Fix starting on non-English versions of Windows
WebUi:
* Javascript auto refresh for both templates.
Deluge 1.0.3 (18 October 2008)
Core:
* Fix upnp - it should work on more routers now too

File diff suppressed because it is too large Load diff

View file

@ -60,7 +60,8 @@ class OptionsTab(Tab):
glade.signal_autoconnect({
"on_button_apply_clicked": self._on_button_apply_clicked,
"on_button_edit_trackers_clicked": self._on_button_edit_trackers_clicked
"on_button_edit_trackers_clicked": self._on_button_edit_trackers_clicked,
"on_chk_stop_at_ratio_toggled": self._on_chk_stop_at_ratio_toggled
})
def update(self):
@ -119,6 +120,8 @@ class OptionsTab(Tab):
self.chk_auto_managed.set_active(status["is_auto_managed"])
if status["stop_at_ratio"] != self.prev_status["stop_at_ratio"]:
self.chk_stop_at_ratio.set_active(status["stop_at_ratio"])
self.spin_stop_ratio.set_sensitive(status["stop_at_ratio"])
self.chk_remove_at_ratio.set_sensitive(status["stop_at_ratio"])
if status["stop_ratio"] != self.prev_status["stop_ratio"]:
self.spin_stop_ratio.set_value(status["stop_ratio"])
if status["remove_at_ratio"] != self.prev_status["remove_at_ratio"]:
@ -153,3 +156,9 @@ class OptionsTab(Tab):
self.prev_torrent_id,
component.get("MainWindow").window)
dialog.run()
def _on_chk_stop_at_ratio_toggled(self, widget):
value = widget.get_active()
self.spin_stop_ratio.set_sensitive(value)
self.chk_remove_at_ratio.set_sensitive(value)