From 5d2ca491c5ae4d7ecee65637b090c9c0e6d277e9 Mon Sep 17 00:00:00 2001 From: Martin Hertz Date: Tue, 19 Mar 2024 13:55:29 +0100 Subject: [PATCH] [Console] Fix saving preferences --- deluge/ui/console/modes/preferences/preferences.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/ui/console/modes/preferences/preferences.py b/deluge/ui/console/modes/preferences/preferences.py index 2c95323c61..73169ee94d 100644 --- a/deluge/ui/console/modes/preferences/preferences.py +++ b/deluge/ui/console/modes/preferences/preferences.py @@ -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()