aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorcatboxanon <122327233+catboxanon@users.noreply.github.com>2023-08-04 04:40:56 -0400
committerGitHub <noreply@github.com>2023-08-04 04:40:56 -0400
commit67312653d766fbbebaecae87b26d5e49789970d3 (patch)
treef1486d3324c69cabacd2b7ca4854206c6891fb60 /modules
parentd89a915b74cd999e13e559d6a702c7da9404db5e (diff)
Cleanup hr infotext paste check
Diffstat (limited to 'modules')
-rw-r--r--modules/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui.py b/modules/ui.py
index 4628bc89..cc298031 100644
--- a/modules/ui.py
+++ b/modules/ui.py
@@ -592,7 +592,7 @@ def create_ui():
(toprow.ui_styles.dropdown, lambda d: d["Styles array"] if isinstance(d.get("Styles array"), list) else gr.update()),
(denoising_strength, "Denoising strength"),
(enable_hr, lambda d: "Denoising strength" in d and any(x in ["Hires upscale", "Hires upscaler"] for x in d)),
- (hr_options, lambda d: gr.Row.update(visible="Denoising strength" in d and any(x in ["Hires upscale", "Hires upscaler"] for x in d))),
+ (hr_options, lambda d: gr.Row.update(visible="Denoising strength" in d and ("Hires upscale" in d or "Hires upscaler" in d or "Hires resize-1" in d))),
(hr_scale, "Hires upscale"),
(hr_upscaler, "Hires upscaler"),
(hr_second_pass_steps, "Hires steps"),