mirror of
https://github.com/upscayl/upscayl.git
synced 2025-02-07 06:51:20 +01:00
added conditionals for updating upscaledImagePath
This commit is contained in:
parent
f6092b88bf
commit
f046dd3d38
@ -139,6 +139,7 @@ const Home = () => {
|
|||||||
|
|
||||||
// UPSCAYL DONE
|
// UPSCAYL DONE
|
||||||
window.electron.on(commands.UPSCAYL_DONE, (_, data: string) => {
|
window.electron.on(commands.UPSCAYL_DONE, (_, data: string) => {
|
||||||
|
if (progress === "") return;
|
||||||
setProgress("");
|
setProgress("");
|
||||||
setUpscaledImagePath(data);
|
setUpscaledImagePath(data);
|
||||||
console.log("upscaledImagePath: ", upscaledImagePath)
|
console.log("upscaledImagePath: ", upscaledImagePath)
|
||||||
@ -147,6 +148,7 @@ const Home = () => {
|
|||||||
|
|
||||||
// FOLDER UPSCAYL DONE
|
// FOLDER UPSCAYL DONE
|
||||||
window.electron.on(commands.FOLDER_UPSCAYL_DONE, (_, data: string) => {
|
window.electron.on(commands.FOLDER_UPSCAYL_DONE, (_, data: string) => {
|
||||||
|
if (progress === "") return;
|
||||||
setProgress("");
|
setProgress("");
|
||||||
setUpscaledBatchFolderPath(data);
|
setUpscaledBatchFolderPath(data);
|
||||||
addToLog(data);
|
addToLog(data);
|
||||||
@ -154,6 +156,7 @@ const Home = () => {
|
|||||||
|
|
||||||
// DOUBLE UPSCAYL DONE
|
// DOUBLE UPSCAYL DONE
|
||||||
window.electron.on(commands.DOUBLE_UPSCAYL_DONE, (_, data: string) => {
|
window.electron.on(commands.DOUBLE_UPSCAYL_DONE, (_, data: string) => {
|
||||||
|
if (progress === "") return;
|
||||||
setProgress("");
|
setProgress("");
|
||||||
setDoubleUpscaylCounter(0);
|
setDoubleUpscaylCounter(0);
|
||||||
setUpscaledImagePath(data);
|
setUpscaledImagePath(data);
|
||||||
@ -586,14 +589,14 @@ const Home = () => {
|
|||||||
{/* DEFAULT PANE INFO */}
|
{/* DEFAULT PANE INFO */}
|
||||||
{((!isVideo &&
|
{((!isVideo &&
|
||||||
!batchMode &&
|
!batchMode &&
|
||||||
imagePath.length === 0 ||
|
imagePath.length === 0 &&
|
||||||
upscaledImagePath.length === 0) ||
|
upscaledImagePath.length === 0) ||
|
||||||
(!isVideo &&
|
(!isVideo &&
|
||||||
batchMode &&
|
batchMode &&
|
||||||
batchFolderPath.length === 0 ||
|
batchFolderPath.length === 0 &&
|
||||||
upscaledBatchFolderPath.length === 0) ||
|
upscaledBatchFolderPath.length === 0) ||
|
||||||
(isVideo &&
|
(isVideo &&
|
||||||
videoPath.length === 0 ||
|
videoPath.length === 0 &&
|
||||||
upscaledVideoPath.length === 0)) && (
|
upscaledVideoPath.length === 0)) && (
|
||||||
<RightPaneInfo
|
<RightPaneInfo
|
||||||
version={version}
|
version={version}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user