Fix syntax error in menu example (#3499)

This commit is contained in:
Richie Bendall
2025-09-09 00:10:45 +12:00
committed by GitHub
parent f1897a1f7b
commit 5d96be3858

View File

@@ -280,7 +280,7 @@ fn main() {
.setup(|app| {
let menu_image = Image::from_bytes(include_bytes!("../icons/menu.png")).unwrap();
let file_menu = SubmenuBuilder::new(app, "File")
.submenu_icon(menu_image)) // Optional: Add an icon to the submenu
.submenu_icon(menu_image) // Optional: Add an icon to the submenu
.text("open", "Open")
.text("quit", "Quit")
.build()?;