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... +
+