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):
|
for i, k in enumerate(self.options):
|
||||||
if i == self.cursor_pos:
|
if i == self.cursor_pos:
|
||||||
Text(k).highlight().draw_at(i + 2, 1)
|
Text(k).highlight().draw_at(i + 2, 1)
|
||||||
|
self.selected = self.options.get(k)
|
||||||
else:
|
else:
|
||||||
Text(k).draw_at(i + 2, 1)
|
Text(k).draw_at(i + 2, 1)
|
||||||
self.selected = self.options.get(k)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Loading…
Reference in New Issue
Block a user