1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-12 01:40:53 +01:00

Update index.ts

This commit is contained in:
NayamAmarshe 2023-05-10 01:13:05 +05:30 committed by GitHub
parent d6815bc420
commit ef797a130e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -302,8 +302,8 @@ ipcMain.handle(commands.SELECT_CUSTOM_MODEL_FOLDER, async (event, message) => {
customModelsFolderPath = folderPaths[0];
if (
!folderPaths[0].endsWith("/models") &&
!folderPaths[0].endsWith("/models/")
!folderPaths[0].endsWith(slash + "models") &&
!folderPaths[0].endsWith(slash + "models" + slash)
) {
logit("❌ Invalid Custom Models Folder Detected: Not a 'models' folder");
const options: MessageBoxOptions = {