1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-09-24 03:18:28 +02:00

Merge branch 'main' into fix-react-infinite-loop

This commit is contained in:
Yevgeniy Akimenko 2023-05-02 13:09:08 -07:00 committed by GitHub
commit af95c76fa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -584,7 +584,8 @@ const Home = () => {
onDragOver={(e) => handleDragOver(e)}
onDragEnter={(e) => handleDragEnter(e)}
onDragLeave={(e) => handleDragLeave(e)}
onPaste={(e) => handlePaste(e)}>
onPaste={(e) => handlePaste(e)}
>
{progress.length > 0 &&
upscaledImagePath.length === 0 &&
upscaledBatchFolderPath.length === 0 &&
@ -630,11 +631,7 @@ const Home = () => {
<img
src={
"file://" +
`${
upscaledImagePath
? upscaledImagePath
: imagePath
}`
`${upscaledImagePath ? upscaledImagePath : imagePath}`
}
onLoad={(e: any) => {
setDimensions({
@ -666,7 +663,8 @@ const Home = () => {
</p>
<button
className="bg-gradient-blue rounded-lg p-3 font-medium text-white/90 transition-colors"
onClick={openFolderHandler}>
onClick={openFolderHandler}
>
Open Upscayled Folder
</button>
</>