mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-30 03:01:15 +00:00
respect disable lora filtering setting (#1904)
This commit is contained in:
@@ -72,20 +72,21 @@ function setupExtraNetworksForTab(tabname) {
|
|||||||
visible = false;
|
visible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
sdversion = elem.getAttribute('data-sort-sdversion');
|
sdversion = elem.getAttribute('data-sort-sdversion');
|
||||||
if (sdversion == null) ;
|
if (sdversion == null) ;
|
||||||
else if (sdversion == 'SdVersion.Unknown') ;
|
else if (sdversion == 'SdVersion.Unknown') ;
|
||||||
else if (UIresult == 3) ; // 'all'
|
else if (opts.lora_filter_disabled == True) ;
|
||||||
else if (UIresult == 0) { // 'sd'
|
else if (UIresult == 3) ; // 'all'
|
||||||
if (sdversion != 'SdVersion.SD1' && sdversion != 'SdVersion.SD2') visible = false;
|
else if (UIresult == 0) { // 'sd'
|
||||||
}
|
if (sdversion != 'SdVersion.SD1' && sdversion != 'SdVersion.SD2') visible = false;
|
||||||
else if (UIresult == 1) { // 'xl'
|
}
|
||||||
if (sdversion != 'SdVersion.SDXL') visible = false;
|
else if (UIresult == 1) { // 'xl'
|
||||||
}
|
if (sdversion != 'SdVersion.SDXL') visible = false;
|
||||||
else if (UIresult == 2) { // 'flux'
|
}
|
||||||
if (sdversion != 'SdVersion.Flux') visible = false;
|
else if (UIresult == 2) { // 'flux'
|
||||||
}
|
if (sdversion != 'SdVersion.Flux') visible = false;
|
||||||
|
}
|
||||||
|
|
||||||
if (visible) {
|
if (visible) {
|
||||||
elem.classList.remove("hidden");
|
elem.classList.remove("hidden");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user