1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-19 01:24:09 +01:00

Fixed models folder bug

This commit is contained in:
Nayam Amarshe 2023-04-20 19:35:42 +05:30
parent 7133df226f
commit 6bcb42791b

View File

@ -289,8 +289,8 @@ ipcMain.handle(commands.SELECT_CUSTOM_MODEL_FOLDER, async (event, message) => {
customModelsFolderPath = folderPaths[0]; customModelsFolderPath = folderPaths[0];
if ( if (
!folderPaths[0].endsWith("models") || !folderPaths[0].endsWith("/models") &&
!folderPaths[0].endsWith("models/") !folderPaths[0].endsWith("/models/")
) { ) {
const options: MessageBoxOptions = { const options: MessageBoxOptions = {
type: "error", type: "error",