1
0
mirror of https://github.com/4yn/slidershim.git synced 2024-09-23 18:58:27 +02: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
let app_handle = app.handle();
let config_clone = Arc::clone(&config);

View File

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