1
0
mirror of https://github.com/4yn/slidershim.git synced 2025-02-02 04:27:58 +01:00

add link to repo

This commit is contained in:
4yn 2022-02-24 10:36:19 +08:00
parent 358b53c0be
commit 60098bba46
2 changed files with 10 additions and 0 deletions

View File

@ -116,6 +116,11 @@ fn main() {
} }
}); });
// Show repo
app.listen_global("openRepo", |_| {
open::that("https://github.com/4yn/slidershim").ok();
});
// UI ready event // UI ready event
let app_handle = app.handle(); let app_handle = app.handle();
let config_clone = Arc::clone(&config); let config_clone = Arc::clone(&config);

View File

@ -136,6 +136,10 @@
async function brokenithmQr() { async function brokenithmQr() {
await emit("openBrokenithmQr"); await emit("openBrokenithmQr");
} }
async function repo() {
await emit("openRepo");
}
</script> </script>
<div class="titlebar"> <div class="titlebar">
@ -416,6 +420,7 @@
{#if deviceMode.slice(0, 10) === "brokenithm"} {#if deviceMode.slice(0, 10) === "brokenithm"}
<button on:click={async () => await brokenithmQr()}>Brokenithm QR</button> <button on:click={async () => await brokenithmQr()}>Brokenithm QR</button>
{/if} {/if}
<button on:click={async () => await repo()}>About</button>
</div> </div>
</main> </main>