summaryrefslogtreecommitdiffstats
path: root/editor/gui/editor_toaster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/gui/editor_toaster.cpp')
-rw-r--r--editor/gui/editor_toaster.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/editor/gui/editor_toaster.cpp b/editor/gui/editor_toaster.cpp
index 1abb591508..48e1c56e83 100644
--- a/editor/gui/editor_toaster.cpp
+++ b/editor/gui/editor_toaster.cpp
@@ -30,9 +30,9 @@
#include "editor_toaster.h"
-#include "editor/editor_scale.h"
#include "editor/editor_settings.h"
#include "editor/editor_string_names.h"
+#include "editor/themes/editor_scale.h"
#include "scene/gui/button.h"
#include "scene/gui/label.h"
#include "scene/gui/panel_container.h"
@@ -406,7 +406,7 @@ void EditorToaster::popup_str(String p_message, Severity p_severity, String p_to
// Since "_popup_str" adds nodes to the tree, and since the "add_child" method is not
// thread-safe, it's better to defer the call to the next cycle to be thread-safe.
is_processing_error = true;
- call_deferred(SNAME("_popup_str"), p_message, p_severity, p_tooltip);
+ callable_mp(this, &EditorToaster::_popup_str).call_deferred(p_message, p_severity, p_tooltip);
is_processing_error = false;
}
@@ -499,11 +499,6 @@ EditorToaster *EditorToaster::get_singleton() {
return singleton;
}
-void EditorToaster::_bind_methods() {
- // Binding method to make it defer-able.
- ClassDB::bind_method(D_METHOD("_popup_str", "message", "severity", "tooltip"), &EditorToaster::_popup_str);
-}
-
EditorToaster::EditorToaster() {
set_notify_transform(true);
set_process_internal(true);