Merge pull request #92645 from WhalesState/container-resort

Fix `NOTIFICATION_SORT_CHILDREN` is called twice on startup
This commit is contained in:
Rémi Verschelde 2024-06-07 23:29:44 +02:00
commit 2c01573fdf
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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;