Hello. I am able to create the tray icon itself. I can't make a menu that should appear when clicking on this icon. It's a little difficult for me right now, since I just started learning rust.
The menu itself is being created: let tray_menu = Menu::new();
Here it is passed to the icon let tray_icon = TrayIconBuilder::new() .with_menu(Box::new(tray_menu))
I don't understand how to create the menu bars with the names themselves.
Are you, perhaps, on Mac? The documentation for the insert method indicates that only submenus can be added to the menu: Menu in tray_icon::menu - Rust