mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-19 19:14:55 +00:00
[GTK] Fix ui logic/bug of checked move_completed
if move_completed is checked/True, options should be updated, not the other way round The path was updated the first time the move_completed option is selected and then ignored on further updated to the path. Fixed by checking instead if the path has changed. Closes: https://github.com/deluge-torrent/deluge/pull/374
This commit is contained in:
parent
2ec6e10c8e
commit
191549074c
1 changed files with 3 additions and 2 deletions
|
@ -188,8 +188,9 @@ class OptionsTab(Tab):
|
|||
):
|
||||
options[status_key] = widget_value
|
||||
|
||||
if options.get('move_completed', False):
|
||||
options['move_completed_path'] = self.move_completed_path_chooser.get_text()
|
||||
move_completed_path = self.move_completed_path_chooser.get_text()
|
||||
if move_completed_path != self.prev_status['move_completed_path']:
|
||||
options['move_completed_path'] = move_completed_path
|
||||
|
||||
client.core.set_torrent_options(self.prev_torrent_ids, options)
|
||||
self.button_apply.set_sensitive(False)
|
||||
|
|
Loading…
Add table
Reference in a new issue