pub fn dynamic_submenu(
title: &str,
items: impl Fn() -> Vec<MenuItem> + 'static,
) -> MenuItemExpand description
A submenu whose items items builds each time it opens (Open Recent, a
list of servers…), so it always shows the current state.