menu: remove ShowMenu action from menu items

Previous commits fixed some unexpected behaviors when ShowMenu action is
executed from menu items, but that was still prone to bugs because when
calling actions_run(), we allow an inconsistent state where all menus are
closed but pipemenus must not be destroyed.

So this commit simply removes ShowMenu actions from menu items on
initialization.
This commit is contained in:
tokyo4j 2025-02-08 01:32:35 +09:00 committed by Consolatis
parent 8f5217c98b
commit fb5e85f40f
3 changed files with 13 additions and 1 deletions

View file

@ -606,6 +606,12 @@ action_is_valid(struct action *action)
return false;
}
bool
action_is_show_menu(struct action *action)
{
return action->type == ACTION_TYPE_SHOW_MENU;
}
void
action_free(struct action *action)
{