Skip to content

Commit

Permalink
add settings menu item on linux & windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tk04 committed May 5, 2024
1 parent 53fc0dd commit d39662b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/src/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub fn os_default(#[allow(unused)] app_name: &str) -> Menu {
file_menu = file_menu.add_native_item(MenuItem::CloseWindow);
#[cfg(not(target_os = "macos"))]
{
file_menu = file_menu.add_native_item(MenuItem::Quit);
file_menu = file_menu.add_item(settings).add_native_item(MenuItem::Quit);
}
menu = menu.add_submenu(Submenu::new("File", file_menu));

Expand Down

0 comments on commit d39662b

Please sign in to comment.