v1.0.2 - Update banner, smart updater, install type detection

This commit is contained in:
Yuri Karamian
2026-02-10 01:31:54 +01:00
parent c105b83570
commit 6a40f553f1
12 changed files with 110 additions and 13 deletions
+8 -2
View File
@@ -1,9 +1,9 @@
<script lang="ts">
import { onMount } from 'svelte';
import '../app.css';
import { theme, appConfig, activeNotePath } from '$lib/stores/app';
import { theme, appConfig, activeNotePath, installType, checkForUpdate } from '$lib/stores/app';
import { openUrl } from '@tauri-apps/plugin-opener';
import { openFile } from '$lib/api';
import { openFile, getInstallType } from '$lib/api';
import { get } from 'svelte/store';
let { children } = $props();
@@ -31,6 +31,12 @@
return resolved.join('/');
}
// Detect install type and check for updates on startup
onMount(() => {
getInstallType().then(t => installType.set(t)).catch(() => {});
checkForUpdate();
});
// Intercept all link clicks in capture phase to prevent webview navigation
onMount(() => {
function handleLinkClick(e: MouseEvent) {