diff --git a/deluge/ui/gtkui/addtorrentdialog.py b/deluge/ui/gtkui/addtorrentdialog.py index 079a528e6..182a8cd38 100644 --- a/deluge/ui/gtkui/addtorrentdialog.py +++ b/deluge/ui/gtkui/addtorrentdialog.py @@ -90,7 +90,6 @@ class AddTorrentDialog(component.Component): "on_button_add_clicked": self._on_button_add_clicked, "on_button_apply_clicked": self._on_button_apply_clicked, "on_button_revert_clicked": self._on_button_revert_clicked, - "on_allocation_toggled": self._on_allocation_toggled, "on_chk_move_completed_toggled": self._on_chk_move_completed_toggled }) @@ -397,8 +396,6 @@ class AddTorrentDialog(component.Component): self.download_location_path_chooser.set_text(options["download_location"], cursor_end=True) self.move_completed_path_chooser.set_text(options["move_completed_path"], cursor_end=True) - #self.builder.get_object("radio_full").set_active( - #self.builder.get_object("radio_pre_alloc").set_active( self.builder.get_object("spin_maxdown").set_value( options["max_download_speed"]) self.builder.get_object("spin_maxup").set_value( @@ -452,7 +449,6 @@ class AddTorrentDialog(component.Component): options["prioritize_first_last_pieces"] = \ self.builder.get_object("chk_prioritize").get_active() options["sequential_download"] = \ - self.builder.get_object("radio_full").get_active() and \ self.builder.get_object("chk_sequential_download").get_active() or False options["move_completed"] = \ self.builder.get_object("chk_move_completed").get_active() @@ -934,8 +930,3 @@ class AddTorrentDialog(component.Component): # Walk through the tree from 'itr' and add all the new file paths # to the 'mapped_files' option walk_tree(itr) - - def _on_allocation_toggled(self, widget): - full_allocation_active = self.builder.get_object("radio_full").get_active() - self.builder.get_object("chk_prioritize").set_sensitive(full_allocation_active) - self.builder.get_object("chk_sequential_download").set_sensitive(full_allocation_active) diff --git a/deluge/ui/gtkui/preferences.py b/deluge/ui/gtkui/preferences.py index 2e178f183..accc1e862 100644 --- a/deluge/ui/gtkui/preferences.py +++ b/deluge/ui/gtkui/preferences.py @@ -170,7 +170,6 @@ class Preferences(component.Component): "on_accounts_add_clicked": self._on_accounts_add_clicked, "on_accounts_delete_clicked": self._on_accounts_delete_clicked, "on_accounts_edit_clicked": self._on_accounts_edit_clicked, - "on_allocation_toggled": self._on_allocation_toggled, "on_piecesbar_toggle_toggled": self._on_piecesbar_toggle_toggled, "on_completed_color_set": self._on_completed_color_set, "on_revert_color_completed_clicked": self._on_revert_color_completed_clicked, @@ -1236,11 +1235,6 @@ class Preferences(component.Component): ).addCallback(remove_ok).addErrback(remove_fail) dialog.run().addCallback(dialog_finished) - def _on_allocation_toggled(self, widget): - full_allocation_active = self.builder.get_object("radio_full_allocation").get_active() - self.builder.get_object("chk_prioritize_first_last_pieces").set_sensitive(full_allocation_active) - self.builder.get_object("chk_sequential_download").set_sensitive(full_allocation_active) - def _on_piecesbar_toggle_toggled(self, widget): self.gtkui_config['show_piecesbar'] = widget.get_active() colors_widget = self.builder.get_object("piecebar_colors_expander")