fixed wrong option selection
This commit is contained in:
parent
a52254ef57
commit
9062dfdc56
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user