mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-12 01:40:53 +01:00
Fix folder progress
This commit is contained in:
parent
8ed3f4673c
commit
75e67e0c56
@ -27,6 +27,10 @@ function ProgressBar({
|
||||
}
|
||||
}, [progress]);
|
||||
|
||||
console.log({
|
||||
progress,
|
||||
});
|
||||
|
||||
return (
|
||||
<div className="absolute flex h-full w-full flex-col items-center justify-center bg-base-300/50 backdrop-blur-lg">
|
||||
<div className="flex flex-col items-center gap-2">
|
||||
|
@ -120,7 +120,7 @@ const Home = () => {
|
||||
} else if (data.includes("converting")) {
|
||||
setProgress("Scaling and converting image...");
|
||||
} else if (data.includes("Successful")) {
|
||||
setProgress("Upscayl done!");
|
||||
setProgress("Upscayl Successful!");
|
||||
}
|
||||
handleErrors(data);
|
||||
logit(`🚧 UPSCAYL_PROGRESS: `, data);
|
||||
@ -128,6 +128,9 @@ const Home = () => {
|
||||
|
||||
// FOLDER UPSCAYL PROGRESS
|
||||
window.electron.on(COMMAND.FOLDER_UPSCAYL_PROGRESS, (_, data: string) => {
|
||||
if (data.includes("Successful")) {
|
||||
setProgress("Upscayl Successful!");
|
||||
}
|
||||
if (data.length > 0 && data.length < 10) {
|
||||
setProgress(data);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user