Fix menus when exit ESC or CTRL+C

So... After a long time i did fix for some menus
Reduce errors hell in terminal
This commit is contained in:
localhost_frssoft 2023-06-15 00:52:34 +03:00
parent a76f36bafd
commit 06b2ebacd1
10 changed files with 62 additions and 12 deletions

View file

@ -30,6 +30,9 @@ def list_fav_or_history(pg=None, search=None, scope=None, is_history_view=False)
who_user = i['user'].get('username')
view.append(f'{index}.{track_name} | {who_user}')
select = fzf.prompt(view, f'--multi --header=\'map: track title | who {action}\'')
if select == []:
return
if 'Next page' in select:
list_fav_or_history(pg=tracks_next, is_history_view=is_history_view)
elif 'Prev page' in select: