mirror of
https://github.com/upscayl/upscayl.git
synced 2025-03-01 16:20:32 +01:00
Fixed select folder null chck
This commit is contained in:
parent
fc9efe847b
commit
0cb3ab3a5f
@ -59,7 +59,7 @@ function SettingsTab({
|
|||||||
} else {
|
} else {
|
||||||
const currentlySavedModel = JSON.parse(
|
const currentlySavedModel = JSON.parse(
|
||||||
localStorage.getItem("model")
|
localStorage.getItem("model")
|
||||||
) as typeof modelOptions[0];
|
) as (typeof modelOptions)[0];
|
||||||
setCurrentModel(currentlySavedModel);
|
setCurrentModel(currentlySavedModel);
|
||||||
setModel(currentlySavedModel.value);
|
setModel(currentlySavedModel.value);
|
||||||
}
|
}
|
||||||
@ -208,6 +208,8 @@ function SettingsTab({
|
|||||||
if (customModelPath !== null) {
|
if (customModelPath !== null) {
|
||||||
setCustomModelsPath(customModelPath);
|
setCustomModelsPath(customModelPath);
|
||||||
window.electron.send(commands.GET_MODELS_LIST, customModelPath);
|
window.electron.send(commands.GET_MODELS_LIST, customModelPath);
|
||||||
|
} else {
|
||||||
|
setCustomModelsPath("");
|
||||||
}
|
}
|
||||||
}}>
|
}}>
|
||||||
Select Folder
|
Select Folder
|
||||||
|
@ -303,6 +303,9 @@ const Home = () => {
|
|||||||
if (path !== null) {
|
if (path !== null) {
|
||||||
setBatchFolderPath(path);
|
setBatchFolderPath(path);
|
||||||
setOutputPath(path + "_upscayled");
|
setOutputPath(path + "_upscayled");
|
||||||
|
} else {
|
||||||
|
setBatchFolderPath("");
|
||||||
|
setOutputPath("");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -406,7 +409,7 @@ const Home = () => {
|
|||||||
localStorage.setItem("lastOutputFolderPath", path);
|
localStorage.setItem("lastOutputFolderPath", path);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log("Getting output path from input file");
|
setOutputPath("");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
::-webkit-scrollbar-track {
|
||||||
@apply rounded-full bg-base-300/50;
|
@apply rounded-full bg-base-300/80;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user