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:
parent
fc9efe847b
commit
0cb3ab3a5f
@ -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
|
||||
|
@ -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("");
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -50,7 +50,7 @@
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
@apply rounded-full bg-base-300/50;
|
||||
@apply rounded-full bg-base-300/80;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
|
Loading…
Reference in New Issue
Block a user