added app version
This commit is contained in:
@@ -11,14 +11,20 @@
|
||||
import Blocks from "../../assets/icons/blocks.svelte";
|
||||
import Image from "../../assets/icons/image.svelte";
|
||||
import Scene from "./tabs/scene/scene.svelte";
|
||||
import { getVersion } from "@tauri-apps/api/app";
|
||||
|
||||
let showInteractionOverlay = false;
|
||||
let appVersion = "";
|
||||
|
||||
onMount(() => {
|
||||
const unlisten = events.setInteractionOverlay.listen((event) => {
|
||||
showInteractionOverlay = event.payload as boolean;
|
||||
});
|
||||
|
||||
getVersion().then((version) => {
|
||||
appVersion = version;
|
||||
});
|
||||
|
||||
return () => {
|
||||
unlisten.then((u) => u());
|
||||
};
|
||||
@@ -42,7 +48,10 @@
|
||||
></div>
|
||||
{/if}
|
||||
<div class="flex flex-col gap-2 h-full max-h-full">
|
||||
<div class="size-full flex flex-col max-h-full gap-2 h-full">
|
||||
<div class="size-full flex flex-col max-h-full gap-2 h-full relative">
|
||||
<div class="absolute top-2 right-2">
|
||||
<p class="text-xs font-mono opacity-50">v{appVersion}</p>
|
||||
</div>
|
||||
<div class="tabs tabs-lift h-full flex-1">
|
||||
<label class="tab">
|
||||
<input
|
||||
|
||||
Reference in New Issue
Block a user