[GH-ISSUE #37] Default setting doesn't work #26

Closed
opened 2026-10-30 21:03:19 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @ihmily on GitHub (Jun 25, 2024).
Original GitHub issue: https://github.com/ahgsql/StyleSelectorXL/issues/37

Can not enable Style Selector by default, It is not effective

When I turn off the default open option, the open page will still automatically check the enable option
1719330515489
1719330515502

When I modify the code https://github.com/ahgsql/StyleSelectorXL/blob/main/scripts/StyleSelectorXL.py#L126C21-L128C116

is_enabled = gr.Checkbox(value=enabled, label="Enable Style Selector", info="Enable Or Disable Style Selector ")

to

is_enabled = gr.Checkbox(value=False, label="Enable Style Selector", info="Enable Or Disable Style Selector ")

It will still default to enable the style selector

Related issues:https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11210

Originally created by @ihmily on GitHub (Jun 25, 2024). Original GitHub issue: https://github.com/ahgsql/StyleSelectorXL/issues/37 ### Can not enable Style Selector by default, It is not effective When I turn off the default open option, the open page will still automatically check the enable option ![1719330515489](https://github.com/ahgsql/StyleSelectorXL/assets/114978440/b197599c-4abd-47f1-85aa-74d07c0f5513) ![1719330515502](https://github.com/ahgsql/StyleSelectorXL/assets/114978440/b718feba-d990-46f9-9c60-648317226ef0) When I modify the code https://github.com/ahgsql/StyleSelectorXL/blob/main/scripts/StyleSelectorXL.py#L126C21-L128C116 ``` is_enabled = gr.Checkbox(value=enabled, label="Enable Style Selector", info="Enable Or Disable Style Selector ") ``` to ``` is_enabled = gr.Checkbox(value=False, label="Enable Style Selector", info="Enable Or Disable Style Selector ") ``` It will still default to enable the style selector Related issues:https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11210
Author
Owner

@Dmorok commented on GitHub (Feb 1, 2025):

is_enabled = gr.Checkbox(value=Disabled,

shared.opts.add_option(
"enable_styleselector_by_default",
shared.OptionInfo(
False,
"enable Style Selector by default",
gr.Checkbox,
section=section
)
)

<!-- gh-comment-id:2629155914 --> @Dmorok commented on GitHub (Feb 1, 2025): is_enabled = gr.Checkbox(value=Disabled, + shared.opts.add_option( "enable_styleselector_by_default", shared.OptionInfo( False, "enable Style Selector by default", gr.Checkbox, section=section ) )
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ahgsql/StyleSelectorXL#26
No description provided.