mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2025-05-04 02:48:40 +00:00
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:
parent
a76f36bafd
commit
06b2ebacd1
10 changed files with 62 additions and 12 deletions
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue