diff options
Diffstat (limited to 'scene/gui/control.cpp')
-rw-r--r-- | scene/gui/control.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scene/gui/control.cpp b/scene/gui/control.cpp index 84ca6bac5b..349102fafb 100644 --- a/scene/gui/control.cpp +++ b/scene/gui/control.cpp @@ -33,7 +33,6 @@ #include "container.h" #include "core/config/project_settings.h" #include "core/math/geometry_2d.h" -#include "core/object/message_queue.h" #include "core/os/keyboard.h" #include "core/os/os.h" #include "core/string/print_string.h" @@ -205,7 +204,7 @@ void Control::set_root_layout_direction(int p_root_dir) { void Control::get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const { ERR_READ_THREAD_GUARD; - Node::get_argument_options(p_function, p_idx, r_options); + CanvasItem::get_argument_options(p_function, p_idx, r_options); if (p_idx == 0) { List<StringName> sn; @@ -1631,7 +1630,7 @@ void Control::update_minimum_size() { } data.updating_last_minimum_size = true; - MessageQueue::get_singleton()->push_callable(callable_mp(this, &Control::_update_minimum_size)); + callable_mp(this, &Control::_update_minimum_size).call_deferred(); } void Control::set_block_minimum_size_adjust(bool p_block) { |