Skip to content

Conversation

@KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Oct 31, 2022

This is similar to set_pressed_no_signal() in BaseButton. I also removed some duplicated code.
Resolves #37876

Alternatively we could make the signal not emitted in set_value(), but that's a very breaking change (and should also be done in BaseButton for consistency).

I think we have a few places where the new method could be useful.

@KoBeWi KoBeWi added this to the 4.x milestone Oct 31, 2022
@KoBeWi KoBeWi requested review from a team as code owners October 31, 2022 22:19
@akien-mga akien-mga modified the milestones: 4.x, 4.0 Nov 4, 2022
@akien-mga akien-mga merged commit 4e47324 into godotengine:master Nov 4, 2022
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the no_signal🔕 branch November 4, 2022 10:52
@rsubtil
Copy link
Member

rsubtil commented Mar 13, 2023

This change is essential for a 3.x project I'm working on; should I open a PR with this backported to 3.x, considering the breaking changes?

@KoBeWi
Copy link
Member Author

KoBeWi commented Mar 13, 2023

This PR does not break compatibility so it can be backported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slider (and probably other Range-based controls) emit value_changed events when their values are updated directly

4 participants