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];
if (
!folderPaths[0].endsWith("models") ||
!folderPaths[0].endsWith("models/")
!folderPaths[0].endsWith("/models") &&
!folderPaths[0].endsWith("/models/")
) {
const options: MessageBoxOptions = {
type: "error",