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

Fixed select folder null chck

This commit is contained in:
Feenix 2023-05-01 12:04:45 +05:30
parent fc9efe847b
commit 0cb3ab3a5f
3 changed files with 8 additions and 3 deletions

View File

@ -59,7 +59,7 @@ function SettingsTab({
} else {
const currentlySavedModel = JSON.parse(
localStorage.getItem("model")
) as typeof modelOptions[0];
) as (typeof modelOptions)[0];
setCurrentModel(currentlySavedModel);
setModel(currentlySavedModel.value);
}
@ -208,6 +208,8 @@ function SettingsTab({
if (customModelPath !== null) {
setCustomModelsPath(customModelPath);
window.electron.send(commands.GET_MODELS_LIST, customModelPath);
} else {
setCustomModelsPath("");
}
}}>
Select Folder

View File

@ -303,6 +303,9 @@ const Home = () => {
if (path !== null) {
setBatchFolderPath(path);
setOutputPath(path + "_upscayled");
} else {
setBatchFolderPath("");
setOutputPath("");
}
};
@ -406,7 +409,7 @@ const Home = () => {
localStorage.setItem("lastOutputFolderPath", path);
}
} else {
console.log("Getting output path from input file");
setOutputPath("");
}
};

View File

@ -50,7 +50,7 @@
}
::-webkit-scrollbar-track {
@apply rounded-full bg-base-300/50;
@apply rounded-full bg-base-300/80;
}
::-webkit-scrollbar-thumb {