Fixed incorrect item being selected
This commit is contained in:
parent
9d3e603b4a
commit
c3c2c78736
1 changed files with 3 additions and 1 deletions
4
tui.py
4
tui.py
|
@ -3,6 +3,7 @@ import requests
|
|||
import curses, curses.textpad
|
||||
import subprocess, sys, json
|
||||
|
||||
|
||||
class Session():
|
||||
def __init__(self):
|
||||
self.client = requests.Session()
|
||||
|
@ -115,7 +116,8 @@ class App():
|
|||
x = self.root.getch()
|
||||
|
||||
if x == 10:
|
||||
self.selected_item = self.items[self.root.getyx()[0] - 4]
|
||||
subprocess.run(f'echo \'{self.gui.results_box.getyx()}\' | xclip -sel c', shell = True)
|
||||
self.selected_item = self.items[self.gui.results_box.getyx()[0] - 1]
|
||||
self.update_orders_results()
|
||||
self.state = 2
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue