| 108 | } |
| 109 | |
| 110 | void 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 | |
| 124 | void EditorDirDialog::_notification(int p_what) { |
| 125 | switch (p_what) { |
no test coverage detected