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:
parent
d6815bc420
commit
ef797a130e
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user