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

@ -29,7 +29,12 @@ def libraries(pg=None, radio=False):
libraries_listing.append(f'{index}.{lib_name} | {lib_by} | {lib_tracks_count}')
lib_select = fzf.prompt(
libraries_listing,
f'--header=\'found {libs_count} libraries\nmap: library name | owner | tracks count\'')[0].split('.', 1)
f'--header=\'found {libs_count} libraries\nmap: library name | owner | tracks count\'')
if lib_select == []:
return
else:
lib_select = lib_select[0].split('.', 1)
if lib_select[0] == 'Next':
return libraries(pg=libs_next)
elif lib_select[0] == 'Prev':