mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-06 16:38:43 +00:00
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:
parent
87cc010d5b
commit
43c8d0ead2
3 changed files with 618 additions and 652 deletions
|
@ -1,4 +1,10 @@
|
||||||
Deluge 1.0.5 (In Development)
|
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:
|
Windows:
|
||||||
* Fix #577 adding torrents by drag n' drop
|
* Fix #577 adding torrents by drag n' drop
|
||||||
|
|
||||||
|
@ -17,9 +23,6 @@ Deluge 1.0.4 (31 October 2008)
|
||||||
Windows:
|
Windows:
|
||||||
* Fix starting on non-English versions of Windows
|
* Fix starting on non-English versions of Windows
|
||||||
|
|
||||||
WebUi:
|
|
||||||
* Javascript auto refresh for both templates.
|
|
||||||
|
|
||||||
Deluge 1.0.3 (18 October 2008)
|
Deluge 1.0.3 (18 October 2008)
|
||||||
Core:
|
Core:
|
||||||
* Fix upnp - it should work on more routers now too
|
* Fix upnp - it should work on more routers now too
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -60,7 +60,8 @@ class OptionsTab(Tab):
|
||||||
|
|
||||||
glade.signal_autoconnect({
|
glade.signal_autoconnect({
|
||||||
"on_button_apply_clicked": self._on_button_apply_clicked,
|
"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):
|
def update(self):
|
||||||
|
@ -119,6 +120,8 @@ class OptionsTab(Tab):
|
||||||
self.chk_auto_managed.set_active(status["is_auto_managed"])
|
self.chk_auto_managed.set_active(status["is_auto_managed"])
|
||||||
if status["stop_at_ratio"] != self.prev_status["stop_at_ratio"]:
|
if status["stop_at_ratio"] != self.prev_status["stop_at_ratio"]:
|
||||||
self.chk_stop_at_ratio.set_active(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"]:
|
if status["stop_ratio"] != self.prev_status["stop_ratio"]:
|
||||||
self.spin_stop_ratio.set_value(status["stop_ratio"])
|
self.spin_stop_ratio.set_value(status["stop_ratio"])
|
||||||
if status["remove_at_ratio"] != self.prev_status["remove_at_ratio"]:
|
if status["remove_at_ratio"] != self.prev_status["remove_at_ratio"]:
|
||||||
|
@ -153,3 +156,9 @@ class OptionsTab(Tab):
|
||||||
self.prev_torrent_id,
|
self.prev_torrent_id,
|
||||||
component.get("MainWindow").window)
|
component.get("MainWindow").window)
|
||||||
dialog.run()
|
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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue