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

Method reload

editor/gui/editor_dir_dialog.cpp:110–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110void EditorDirDialog::reload(const String &p_path) {
111 if (!is_visible()) {
112 must_reload = true;
113 return;
114 }
115
116 tree->clear();
117 TreeItem *root = tree->create_item();
118 _update_dir(tree->get_theme_color(SNAME("folder_icon_color"), SNAME("FileDialog")), FileSystemDock::get_singleton()->get_assigned_folder_colors(), FileSystemDock::get_singleton()->get_folder_colors(), EditorThemeManager::is_dark_theme(), root, EditorFileSystem::get_singleton()->get_filesystem(), p_path);
119 _item_collapsed(root);
120 new_dir_path.clear();
121 must_reload = false;
122}
123
124void EditorDirDialog::_notification(int p_what) {
125 switch (p_what) {

Callers 2

run_editor_scriptMethod · 0.45
_update_searchMethod · 0.45

Calls 5

get_filesystemMethod · 0.80
clearMethod · 0.45
create_itemMethod · 0.45
get_theme_colorMethod · 0.45

Tested by

no test coverage detected