1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-24 07:30:19 +01:00

Merge pull request #293 from upscayl/stop-button

resolved bug with rightpanelinfo disappearing
This commit is contained in:
Suvojit Ghosh 2023-04-29 22:26:22 +05:30 committed by GitHub
commit cdf9549e0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,6 +139,7 @@ const Home = () => {
// UPSCAYL DONE
window.electron.on(commands.UPSCAYL_DONE, (_, data: string) => {
if (progress === "") return;
setProgress("");
setUpscaledImagePath(data);
console.log("upscaledImagePath: ", upscaledImagePath)
@ -147,6 +148,7 @@ const Home = () => {
// FOLDER UPSCAYL DONE
window.electron.on(commands.FOLDER_UPSCAYL_DONE, (_, data: string) => {
if (progress === "") return;
setProgress("");
setUpscaledBatchFolderPath(data);
addToLog(data);
@ -154,6 +156,7 @@ const Home = () => {
// DOUBLE UPSCAYL DONE
window.electron.on(commands.DOUBLE_UPSCAYL_DONE, (_, data: string) => {
if (progress === "") return;
setProgress("");
setDoubleUpscaylCounter(0);
setUpscaledImagePath(data);