fix: populate version in Settings → About from Tauri app config
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 2m58s
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 2m58s
Used getVersion() from @tauri-apps/api/app which reads the version from tauri.conf.json (patched by CI from the git tag). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
ef377e8fe8
commit
6f26822b85
@ -271,6 +271,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, watch, onMounted } from "vue";
|
||||
import { invoke } from "@tauri-apps/api/core";
|
||||
import { getVersion } from "@tauri-apps/api/app";
|
||||
import { open as shellOpen } from "@tauri-apps/plugin-shell";
|
||||
|
||||
type Section = "general" | "terminal" | "vault" | "copilot" | "about";
|
||||
@ -331,6 +332,9 @@ const settings = ref({
|
||||
|
||||
/** Load saved settings from Rust backend on mount. */
|
||||
onMounted(async () => {
|
||||
// Populate version from Tauri app config
|
||||
try { currentVersion.value = await getVersion(); } catch { currentVersion.value = "unknown"; }
|
||||
|
||||
try {
|
||||
const [protocol, sidebarW, theme, fontSize, scrollback] = await Promise.all([
|
||||
invoke<string | null>("get_setting", { key: "default_protocol" }),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user