Add preferences option "Add torrent in paused state"

This commit is contained in:
Andrew Resch 2009-03-15 17:59:27 +00:00
commit a0db11f0b8
3 changed files with 877 additions and 858 deletions

View file

@ -8,6 +8,7 @@
* Remove SignalReceiver * Remove SignalReceiver
* Implemented a cross-platform IPC method thus removing the DBUS dependency * Implemented a cross-platform IPC method thus removing the DBUS dependency
* Implement a "True" Classic Mode where there is no longer a separate daemon process * Implement a "True" Classic Mode where there is no longer a separate daemon process
* Add preferences option "Add torrent in paused state"
==== WebUI ==== ==== WebUI ====
* Move over to using Twisted-Web for the webserver. * Move over to using Twisted-Web for the webserver.

File diff suppressed because it is too large Load diff

View file

@ -207,6 +207,7 @@ class Preferences(component.Component):
"chk_prioritize_first_last_pieces": \ "chk_prioritize_first_last_pieces": \
("active", ("active",
self.core_config["prioritize_first_last_pieces"]), self.core_config["prioritize_first_last_pieces"]),
"chk_add_paused": ("active", self.core_config["add_paused"]),
"spin_port_min": ("value", self.core_config["listen_ports"][0]), "spin_port_min": ("value", self.core_config["listen_ports"][0]),
"spin_port_max": ("value", self.core_config["listen_ports"][1]), "spin_port_max": ("value", self.core_config["listen_ports"][1]),
"active_port_label": ("text", str(self.active_port)), "active_port_label": ("text", str(self.active_port)),
@ -347,6 +348,7 @@ class Preferences(component.Component):
"radio_compact_allocation", "radio_compact_allocation",
"radio_full_allocation", "radio_full_allocation",
"chk_prioritize_first_last_pieces", "chk_prioritize_first_last_pieces",
"chk_add_paused",
"spin_port_min", "spin_port_min",
"spin_port_max", "spin_port_max",
"active_port_label", "active_port_label",
@ -532,6 +534,8 @@ class Preferences(component.Component):
new_core_config["prioritize_first_last_pieces"] = \ new_core_config["prioritize_first_last_pieces"] = \
self.glade.get_widget( self.glade.get_widget(
"chk_prioritize_first_last_pieces").get_active() "chk_prioritize_first_last_pieces").get_active()
new_core_config["add_paused"] = \
self.glade.get_widget("chk_add_paused").get_active()
## Network tab ## ## Network tab ##
listen_ports = [] listen_ports = []