From 60098bba46700b2e1b18e10cb28c894b96c1cf85 Mon Sep 17 00:00:00 2001 From: 4yn Date: Thu, 24 Feb 2022 10:36:19 +0800 Subject: [PATCH] add link to repo --- src-tauri/src/main.rs | 5 +++++ src/App.svelte | 5 +++++ 2 files changed, 10 insertions(+) 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} +