Skip to content

Commit

Permalink
chore: macos build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Jun 24, 2024
1 parent 825a738 commit 68de07d
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,18 +145,17 @@ fn main() {
let mut menu_builder = MenuBuilder::new(app);
#[cfg(target_os = "macos")]
{
let submenu = SubmenuBuilder::new(app, &ctx.package_info().name)
.about(Some(AboutMetadataBuilder::new().build()))
.separator()
.services()
.separator()
.hide()
.hide_others()
.show_all()
.separator()
.quit()
.build()?;
menuBuilder = menuBuilder.item(&submenu);
menu_builder = menu_builder.item(&SubmenuBuilder::new(app, &ctx.package_info().name)
.about(Some(AboutMetadataBuilder::new().build()))
.separator()
.services()
.separator()
.hide()
.hide_others()
.show_all()
.separator()
.quit()
.build()?);
}
let open = MenuItemBuilder::with_id("open", "Open...")
.accelerator("CmdOrControl+O")
Expand Down

0 comments on commit 68de07d

Please sign in to comment.