From 428bb5a05cdbc21283962eda1b5fce9c8b1efdf7 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Fri, 13 Sep 2019 18:45:07 -0700 Subject: [PATCH] Updated advanced_select() --- scripts/wk/std.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/wk/std.py b/scripts/wk/std.py index 0445f70b..60029737 100644 --- a/scripts/wk/std.py +++ b/scripts/wk/std.py @@ -312,19 +312,18 @@ class Menu(): The menu can only be exited by selecting an action.""" while True: - # Resolve selection status for sets self._update(single_selection=False) user_selection = self._user_select(prompt) + selected_entry = self._resolve_selection(user_selection) if user_selection.isnumeric(): # Update selection(s) - entry = self._resolve_selection(user_selection)[0] - self._update_entry_selection_status(entry) + self._update_entry_selection_status(selected_entry[0]) else: # Action selected break # Done - return self._resolve_selection(user_selection) + return selected_entry def simple_select(self, prompt='Please make a selection...'): """Display menu and make a single selection, returns tuple."""