diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-07 23:29:44 +0200 |
|---|---|---|
| committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-06-07 23:29:44 +0200 |
| commit | 2c01573fdf70a6a8f99210ad6c41ac164d1cf014 (patch) | |
| tree | 2840fb8a036686753913aa97ba3161e58884ba32 /scene/gui/container.cpp | |
| parent | 0b24f40c33935d5776e6fbebbbe762422ba83181 (diff) | |
| parent | 62a58c55388da3ad1340cfdf7d08925315b08da3 (diff) | |
| download | redot-engine-2c01573fdf70a6a8f99210ad6c41ac164d1cf014.tar.gz | |
Merge pull request #92645 from WhalesState/container-resort
Fix `NOTIFICATION_SORT_CHILDREN` is called twice on startup
Diffstat (limited to 'scene/gui/container.cpp')
| -rw-r--r-- | scene/gui/container.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scene/gui/container.cpp b/scene/gui/container.cpp index f1faf3e899..c824200ffc 100644 --- a/scene/gui/container.cpp +++ b/scene/gui/container.cpp @@ -177,13 +177,9 @@ Vector<int> Container::get_allowed_size_flags_vertical() const { void Container::_notification(int p_what) { switch (p_what) { - case NOTIFICATION_ENTER_TREE: { - pending_sort = false; - queue_sort(); - } break; - case NOTIFICATION_RESIZED: - case NOTIFICATION_THEME_CHANGED: { + case NOTIFICATION_THEME_CHANGED: + case NOTIFICATION_ENTER_TREE: { queue_sort(); } break; |
