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