menu: fix codestyle warnings

This commit is contained in:
Alex Chernika 2026-04-10 16:39:07 +02:00
parent 72f7a446a6
commit 7575623db8
No known key found for this signature in database
GPG key ID: 6029FAD8ABFB076A
2 changed files with 10 additions and 6 deletions

View file

@ -1495,8 +1495,10 @@ menu_item_select_by_accelerator(char accelerator)
next_selection = item;
matched = true;
} else if (matched && item->accelerator == accelerator) {
/* Another menuentry with such accelerator found,
cycle selection instead of executing */
/*
* Another menuentry with such accelerator found,
* cycle selection instead of executing
*/
needs_exec = false;
break;
}
@ -1505,8 +1507,10 @@ menu_item_select_by_accelerator(char accelerator)
if (next_selection) {
menu_process_item_selection(next_selection);
if (needs_exec && next_selection->submenu) {
/* Submenu was opened, select the first menuitem
without executing */
/*
* Submenu was opened, select the first menuitem
* without executing
*/
needs_exec = false;
menu_submenu_enter();
}
@ -1514,7 +1518,6 @@ menu_item_select_by_accelerator(char accelerator)
return needs_exec;
}
bool
menu_call_selected_actions(void)
{