This commit is contained in:
t
2026-03-22 23:18:32 -06:00
parent 0dbf8e5048
commit 6c3c950fb2
+5 -1
View File
@@ -17,7 +17,11 @@ app.registerExtension({
},
get: () => {
if (dirWidget.value === "[All]") return fullLoraList;
return fullLoraList.filter(x => x.startsWith(dirWidget.value + "/") || x.startsWith(dirWidget.value + "\\"));
// Compare only the parent folder of each lora path
return fullLoraList.filter(x => {
const parts = x.split(/[\\/]/);
return parts.length > 1 && parts[0] === dirWidget.value;
});
}
});
}