diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 12fb11d..a9d8844 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -116,6 +116,11 @@ fn main() { } }); + // Show repo + app.listen_global("openRepo", |_| { + open::that("https://github.com/4yn/slidershim").ok(); + }); + // UI ready event let app_handle = app.handle(); let config_clone = Arc::clone(&config); diff --git a/src/App.svelte b/src/App.svelte index 1b41161..6c5187b 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -136,6 +136,10 @@ async function brokenithmQr() { await emit("openBrokenithmQr"); } + + async function repo() { + await emit("openRepo"); + }
@@ -416,6 +420,7 @@ {#if deviceMode.slice(0, 10) === "brokenithm"} {/if} +