From de34063565180705afe61126e01711e7fe51dea5 Mon Sep 17 00:00:00 2001 From: Nayam Amarshe <25067102+NayamAmarshe@users.noreply.github.com> Date: Sat, 31 Aug 2024 16:35:53 +0530 Subject: [PATCH] Remove circle bar --- electron/index.ts | 5 ++ .../upscayl-tab/view/ProgressBar.tsx | 47 ++++++++++++++----- 2 files changed, 39 insertions(+), 13 deletions(-) diff --git a/electron/index.ts b/electron/index.ts index 852a341..6626e65 100644 --- a/electron/index.ts +++ b/electron/index.ts @@ -40,6 +40,11 @@ app.on("ready", async () => { autoUpdater.checkForUpdates(); } + log.info( + "🆙 Upscayl version:", + app.getVersion(), + featureFlags.APP_STORE_BUILD && "MAC-APP-STORE", + ); log.info("🚀 UPSCAYL EXEC PATH: ", execPath); log.info("🚀 MODELS PATH: ", modelsPath); diff --git a/renderer/components/upscayl-tab/view/ProgressBar.tsx b/renderer/components/upscayl-tab/view/ProgressBar.tsx index aa2c89e..818f914 100644 --- a/renderer/components/upscayl-tab/view/ProgressBar.tsx +++ b/renderer/components/upscayl-tab/view/ProgressBar.tsx @@ -1,4 +1,4 @@ -import React, { useEffect } from "react"; +import React, { CSSProperties, useEffect, useMemo } from "react"; import Spinner from "../../icons/Spinner"; import Logo from "@/components/icons/Logo"; @@ -23,22 +23,43 @@ function ProgressBar({ } }, [progress]); + // const progressStyle = useMemo(() => { + // if (progress.includes("%")) { + // return { + // "--value": parseFloat(progress.replace("%", "")), + // }; + // } else if (progress.includes("Success")) { + // return { + // "--value": 100, + // }; + // } + // return { + // "--value": 0, + // }; + // }, [progress]); + return (
- {batchMode && `Batch Upscayl In Progress: ${batchProgress}` } -
- {progress !== "Hold on..." ? ( -- Doing the Upscayl magic... + {batchMode && `Batch Upscayl In Progress: ${batchProgress}`}
++ {progress} + {!batchMode && + doubleUpscaylCounter > 0 && + "\nPass " + doubleUpscaylCounter} +
+ ) : ( +{progress}
+ )} ++ Doing the Upscayl magic... +
+