fixed wrong option selection

This commit is contained in:
Nicholas Dyer 2023-12-21 13:34:02 -05:00
parent a52254ef57
commit 9062dfdc56
Signed by: ndyer
GPG Key ID: E5426C53DE17E1B2

View File

@ -57,9 +57,9 @@ class Menu:
for i, k in enumerate(self.options):
if i == self.cursor_pos:
Text(k).highlight().draw_at(i + 2, 1)
self.selected = self.options.get(k)
else:
Text(k).draw_at(i + 2, 1)
self.selected = self.options.get(k)
def main():