fix(gui): preserve disabled VAE tiling in configs (#2346)

Treat the presence of sdtiledvae separately from its truthiness so the documented zero value survives a launcher config reload. Fixes #2065.

Co-authored-by: LK-Customs <lolikun@sunpraise-mc.com>
This commit is contained in:
DilanRG
2026-07-19 17:37:37 +08:00
committed by GitHub
parent 771b6391ee
commit a5560fc61d
+1 -1
View File
@@ -9940,7 +9940,7 @@ def show_gui():
sd_photomaker_var.set(mydict["sdphotomaker"] if ("sdphotomaker" in mydict and mydict["sdphotomaker"]) else "")
sd_upscaler_var.set(mydict["sdupscaler"] if ("sdupscaler" in mydict and mydict["sdupscaler"]) else "")
sd_vaeauto_var.set(1 if ("sdvaeauto" in mydict and mydict["sdvaeauto"]) else 0)
sd_tiled_vae_var.set(str(mydict["sdtiledvae"]) if ("sdtiledvae" in mydict and mydict["sdtiledvae"]) else str(default_vae_tile_threshold))
sd_tiled_vae_var.set(str(mydict["sdtiledvae"]) if "sdtiledvae" in mydict else str(default_vae_tile_threshold))
sdl_sanitized = sanitize_lora_list(mydict.get('sdlora'))
sd_lora_var.set("|".join(sdl_sanitized))
sd_loramult_var.set(" ".join(f"{n:.3f}".rstrip('0').rstrip('.') for n in mydict.get("sdloramult", [])))