Skip to content

Commit

Permalink
add link to documentation in global menu
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Apr 14, 2024
1 parent 81b56c7 commit 156db0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ fn main() {
.add_submenu(Submenu::new(
"Help",
Menu::new()
.add_item(CustomMenuItem::new(
"documentation".to_string(),
"Documentation",
))
.add_item(CustomMenuItem::new(
"clear_saved_data".to_string(),
"Clear saved data",
Expand Down
5 changes: 5 additions & 0 deletions src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@ function RootLayout() {
{
label: "Help",
options: [
{
label: "Documentation",
id: "documentation",
action: () => shellOpen("https://encroissant.org/docs/"),
},
{
label: "Clear saved data",
id: "clear_saved_data",
Expand Down

0 comments on commit 156db0e

Please sign in to comment.