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
parent 2e640b4cae
commit f945a6f597
3 changed files with 636 additions and 675 deletions

View File

@ -26,19 +26,17 @@ Deluge 1.1.0 - "" (In Development)
* Persistent sessions #486
* Plugin improvements for easy use of templates and images in eggs. #497
* Classic template takes over some style elements from white template.
* Javascript Auto Refresh
* https (for users that know how to create certificates)
* easyer apache mod_proxy use.
* Easier apache mod_proxy use.
* Redesigned sidebar
AjaxUI:
* hosted in a webui template.
* Hosted in a webui template.
ConsoleUI (previously null-ui):
* colors and enhancements by idoa01
* callable from command-line for scripts.
* New ConsoleUI written by Idoa01
* Callable from command-line for scripts.
Plugins:
* Stats plugin for graphs.
* Label plugin for grouping torrents and per torrent settings.

File diff suppressed because it is too large Load Diff

View File

@ -64,7 +64,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_chk_move_completed_toggled": self._on_chk_move_completed_toggled
"on_chk_move_completed_toggled": self._on_chk_move_completed_toggled,
"on_chk_stop_at_ratio_toggled": self._on_chk_stop_at_ratio_toggled
})
def start(self):
@ -136,6 +137,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"]:
@ -194,3 +197,9 @@ class OptionsTab(Tab):
widget = self.entry_move_completed
widget.set_sensitive(value)
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)