Make sure sensitivity of move completed path is always set correctly in add torrent dialog.

This commit is contained in:
Chase Sterling 2012-11-10 22:20:27 -05:00
parent db5a4f84f6
commit 15492028fc

View File

@ -409,6 +409,9 @@ class AddTorrentDialog(component.Component):
options["prioritize_first_last_pieces"])
self.builder.get_object("chk_sequential_download").set_active(
options["sequential_download"])
self.builder.get_object("chk_move_completed").set_active(
options["move_completed"])
self._on_chk_move_completed_toggled(self.builder.get_object("chk_move_completed"))
def save_torrent_options(self, row=None):
# Keeps the torrent options dictionary up-to-date with what the user has
@ -519,6 +522,7 @@ class AddTorrentDialog(component.Component):
self.core_config["sequential_download"])
self.builder.get_object("chk_move_completed").set_active(
self.core_config["move_completed"])
self._on_chk_move_completed_toggled(self.builder.get_object("chk_move_completed"))
def get_file_priorities(self, torrent_id):
# A list of priorities