From 028fc25f28c38b89220694c676070f49c34a1d2b Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Mon, 19 Sep 2022 17:16:04 +0300 Subject: fix the issue with incorrect js options on page load add a setting for lightbox max size images use setting for lightbox max size images late to let user change it and see results --- modules/shared.py | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/shared.py') diff --git a/modules/shared.py b/modules/shared.py index c2c3c7ee..439c8edf 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -160,6 +160,7 @@ class Options: "interrogate_clip_dict_limit": OptionInfo(1500, "Interrogate: maximum number of lines in text file (0 = No limit)"), "sd_model_checkpoint": OptionInfo(None, "Stable Diffusion checkpoint", gr.Radio, lambda: {"choices": [x.title for x in modules.sd_models.checkpoints_list.values()]}), "js_modal_lightbox": OptionInfo(True, "Enable full page image viewer"), + "js_modal_lightbox_initialy_zoomed": OptionInfo(True, "Show images zoomed in by default in full page image viewer"), } def __init__(self): -- cgit v1.2.1