mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 02:40:53 +00:00
fix menu toggle/hide issues
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19495 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
50cc36d3c6
commit
0edb9429c5
@ -101,7 +101,7 @@ static int cmd_filter(mp_cmd_t* cmd, int paused, struct vf_priv_s * priv) {
|
||||
case MP_CMD_MENU : { // Convert txt cmd from the users into libmenu stuff
|
||||
char* arg = cmd->args[0].v.s;
|
||||
|
||||
if(!priv->current->show)
|
||||
if(!priv->current->show && !(strcmp(arg,"hide") == 0) )
|
||||
priv->current->show = 1;
|
||||
else if(strcmp(arg,"up") == 0)
|
||||
menu_read_cmd(priv->current,MENU_CMD_UP);
|
||||
@ -115,7 +115,7 @@ static int cmd_filter(mp_cmd_t* cmd, int paused, struct vf_priv_s * priv) {
|
||||
menu_read_cmd(priv->current,MENU_CMD_OK);
|
||||
else if(strcmp(arg,"cancel") == 0)
|
||||
menu_read_cmd(priv->current,MENU_CMD_CANCEL);
|
||||
else if(strcmp(arg,"hide") == 0)
|
||||
else if(strcmp(arg,"hide") == 0 || strcmp(arg,"toggle") == 0)
|
||||
priv->current->show = 0;
|
||||
else
|
||||
mp_msg(MSGT_GLOBAL,MSGL_WARN,MSGTR_LIBMENU_UnknownMenuCommand,arg);
|
||||
|
Loading…
Reference in New Issue
Block a user