From 8660bc9967a1a3a432cc4532f30ec8c2e47f3fc5 Mon Sep 17 00:00:00 2001 From: Satakun Utama Date: Sat, 4 Oct 2025 14:28:00 +0700 Subject: [PATCH] Fixes progress report --- solid-src/src/pages/ProgressPage.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/solid-src/src/pages/ProgressPage.tsx b/solid-src/src/pages/ProgressPage.tsx index 227a3af..1cffe1b 100644 --- a/solid-src/src/pages/ProgressPage.tsx +++ b/solid-src/src/pages/ProgressPage.tsx @@ -2,7 +2,7 @@ import { openFile } from "@/util/oshelper"; import { getTemporaryFilePath, getVencoderFolder } from "@/util/path"; import { generateRandomString } from "@/util/string"; import { events, os, storage, type SpawnedProcess } from "@neutralinojs/lib"; -import { createSignal, onMount, onCleanup, Show, Index } from "solid-js"; +import { createSignal, onMount, onCleanup, Show } from "solid-js"; interface TargetFile { com: string; @@ -217,15 +217,15 @@ function ProgressPage() { Processes finished. You can close this window. - - {(item, _) => ( + {progressList().map((item) => { + return (
- +
{Math.min( - Math.round(item().percentage), + Math.round(item.percentage), 100, )} %
- )} -
+ ); + })}
{queueLength()} file(s) queued.