From 156db0eedf11aaab6a09563230f1edf7cb075ea5 Mon Sep 17 00:00:00 2001 From: Francisco Salgueiro Date: Sun, 14 Apr 2024 13:06:56 +0100 Subject: [PATCH] add link to documentation in global menu --- src-tauri/src/main.rs | 4 ++++ src/routes/__root.tsx | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 09c33f61..1fccb656 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -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", diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 59c050b3..4010aedb 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -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",