Change behavior visibility player button in main menu

This commit is contained in:
localhost_frssoft 2022-11-29 01:02:39 +03:00
parent bd095da8ac
commit a65526443d

View File

@ -45,7 +45,7 @@ def main():
menu.append('Sign in') menu.append('Sign in')
if support_message != '': if support_message != '':
menu.append('Donate') menu.append('Donate')
if not src.mpv_control.player.core_idle: if src.mpv_control.player.playlist_playing_pos != -1:
menu.insert(0, 'Player') menu.insert(0, 'Player')
ids = fzf.prompt(menu, f"--header={main_menu_header}") ids = fzf.prompt(menu, f"--header={main_menu_header}")