Skip to content

Commit

Permalink
[Console] Fix saving preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
mhertz committed Mar 19, 2024
1 parent 7f3f7f6 commit 5d2ca49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deluge/ui/console/modes/preferences/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,12 @@ def _actions_read(self, c):
self.action_input.handle_read(c)
if c in [curses.KEY_ENTER, util.KEY_ENTER2]:
# take action
if self.action_input.selected_index == 0: # Cancel
if self.action_input.active_index == 0: # Cancel
self.back_to_parent()
elif self.action_input.selected_index == 1: # Apply
elif self.action_input.active_index == 1: # Apply
self._apply_prefs()
client.core.get_config().addCallback(self._update_preferences)
elif self.action_input.selected_index == 2: # OK
elif self.action_input.active_index == 2: # OK
self._apply_prefs()
self.back_to_parent()

Expand Down

0 comments on commit 5d2ca49

Please sign in to comment.