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:
parent
7133df226f
commit
6bcb42791b
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user