1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-18 17:14:08 +01:00

Update renderer/pages/index.tsx

Co-authored-by: NayamAmarshe <nayamamarshe@protonmail.com>
This commit is contained in:
Yevgeniy Akimenko 2023-05-02 13:07:06 -07:00 committed by GitHub
parent 45a69fecd8
commit 1dc313cb7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,8 +276,7 @@ const Home = () => {
if (path !== null) {
logit("📢 Selected Image Path: ", path);
SetImagePath(path);
setFormattedImagePath(formatPath(path));
SetImagePath(formatPath(path));
var dirname = path.match(/(.*)[\/\\]/)[1] || "";
logit("📢 Selected Image Directory: ", dirname);
setOutputPath(dirname);