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

Hidden & advanced widgets #250

Merged
merged 1 commit into from
Nov 1, 2024
Merged

Hidden & advanced widgets #250

merged 1 commit into from
Nov 1, 2024

Conversation

pythongosssss
Copy link
Member

Adds support for hiding widgets and flagging them as advanced

firefox_KM9druzde6.webm

In this example i've made 2 random widgets advanced:

app.graph.nodes.find(n => n.type === "EmptyLatentImage").widgets[1].advanced = true;
app.graph.nodes.find(n => n.type === "KSampler").widgets[1].advanced = true;

Scanned through all the references to widgets so hopefully didn't miss anywhere that was using them for size calculations.

@webfiltered
Copy link
Collaborator

Nice! I did some minor refactors to match existing use (and future use for canvas): f53868f

Copy link
Member

@huchenlei huchenlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have some sort of visual indication that a widget is advanced?

@huchenlei huchenlei merged commit eaaa0a4 into master Nov 1, 2024
4 checks passed
@huchenlei huchenlei deleted the hide-widgets branch November 1, 2024 01:41
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

Successfully merging this pull request may close these issues.

3 participants