MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / add_io_error

Method add_io_error

editor/editor_node.cpp:5054–5065  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5052}
5053
5054void EditorNode::add_io_error(const String &p_error) {
5055 DEV_ASSERT(Thread::get_caller_id() == Thread::get_main_id());
5056 singleton->load_errors->add_image(singleton->theme->get_icon(SNAME("Error"), EditorStringName(EditorIcons)));
5057 singleton->load_errors->add_text(p_error + "\n");
5058 // When a progress dialog is displayed, we will wait for it ot close before displaying
5059 // the io errors to prevent the io popup to set it's parent to the progress dialog.
5060 if (singleton->progress_dialog->is_visible()) {
5061 singleton->load_errors_queued_to_display = true;
5062 } else {
5063 EditorInterface::get_singleton()->popup_dialog_centered_ratio(singleton->load_error_dialog, 0.5);
5064 }
5065}
5066
5067void EditorNode::add_io_warning(const String &p_warning) {
5068 DEV_ASSERT(Thread::get_caller_id() == Thread::get_main_id());

Callers 6

_save_dir_confirmMethod · 0.80
_try_move_itemMethod · 0.80
_try_duplicate_itemMethod · 0.80
ok_pressedMethod · 0.80

Calls 5

add_imageMethod · 0.80
get_iconMethod · 0.45
add_textMethod · 0.45
is_visibleMethod · 0.45

Tested by

no test coverage detected