You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #59226 from Rindbee/better-setters-in-gui-controls
Improve the setters in gui, return directly if the value does not change.
This commit is contained in:
@@ -331,6 +331,10 @@ void SplitContainer::set_collapsed(bool p_collapsed) {
|
||||
}
|
||||
|
||||
void SplitContainer::set_dragger_visibility(DraggerVisibility p_visibility) {
|
||||
if (dragger_visibility == p_visibility) {
|
||||
return;
|
||||
}
|
||||
|
||||
dragger_visibility = p_visibility;
|
||||
queue_sort();
|
||||
update();
|
||||
|
||||
Reference in New Issue
Block a user