Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default setting doesn't work #37

Open
ihmily opened this issue Jun 25, 2024 · 1 comment
Open

Default setting doesn't work #37

ihmily opened this issue Jun 25, 2024 · 1 comment

Comments

@ihmily
Copy link

ihmily commented Jun 25, 2024

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:AUTOMATIC1111/stable-diffusion-webui#11210

@Dmorok
Copy link

Dmorok commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants