feat: use progress api

This commit is contained in:
2026-04-22 17:21:58 +02:00
parent 40f8e3a430
commit c7f46e8711
3 changed files with 28 additions and 1 deletions

View File

@@ -20,6 +20,7 @@
sync,
syncProgress,
syncStatus,
waitForDevice,
} from "$lib/serial/connection";
import ProgressButton from "$lib/ProgressButton.svelte";
import { tick } from "svelte";
@@ -136,6 +137,7 @@
empty.add(id);
}
}
changes.update((changes) => {
changes.push([
...empty.keys().map(
@@ -242,6 +244,8 @@
let progressCurrent = 0;
await waitForDevice(port);
function updateProgress() {
syncProgress.set({
max: progressMax,