mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-01 13:22:04 -08:00
Add option to change left click behavior for directory filter.
This commit is contained in:
parent
5a2fca8ca5
commit
6d076522c4
4 changed files with 61 additions and 27 deletions
|
|
@ -628,23 +628,7 @@ class ExtraNetworksClusterizeCardList extends ExtraNetworksClusterize {
|
|||
if (!v.visible) {
|
||||
continue;
|
||||
}
|
||||
/*
|
||||
if (this.directory_filter_str && this.directory_filter_recurse) {
|
||||
// Filter as directory with recurse shows all nested children.
|
||||
// Case sensitive comparison against the relative directory of each object.
|
||||
v.visible = v.rel_parent_dir.startsWith(this.directory_filter_str);
|
||||
if (!v.visible) {
|
||||
continue;
|
||||
}
|
||||
} else {
|
||||
// Filtering as directory without recurse only shows direct children.
|
||||
// Case sensitive comparison against the relative directory of each object.
|
||||
if (this.directory_filter_str && this.directory_filter_str !== v.rel_parent_dir) {
|
||||
v.visible = false;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
// Narrow the filtered items based on the search string.
|
||||
// Custom filter for items marked search_only=true.
|
||||
if (v.search_only) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue