mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Make EditorFileDialog inherit FileDialog
This commit is contained in:
parent
f5918a9d35
commit
c1cc178a82
23 changed files with 253 additions and 3285 deletions
|
|
@ -978,7 +978,6 @@ void ProjectDialog::_notification(int p_what) {
|
|||
} break;
|
||||
case NOTIFICATION_READY: {
|
||||
fdialog_project = memnew(EditorFileDialog);
|
||||
fdialog_project->set_previews_enabled(false); // Crucial, otherwise the engine crashes.
|
||||
fdialog_project->set_access(EditorFileDialog::ACCESS_FILESYSTEM);
|
||||
fdialog_project->connect("dir_selected", callable_mp(this, &ProjectDialog::_project_path_selected));
|
||||
fdialog_project->connect("file_selected", callable_mp(this, &ProjectDialog::_project_path_selected));
|
||||
|
|
@ -1188,7 +1187,6 @@ ProjectDialog::ProjectDialog() {
|
|||
spacer->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
default_files_container->add_child(spacer);
|
||||
fdialog_install = memnew(EditorFileDialog);
|
||||
fdialog_install->set_previews_enabled(false); //Crucial, otherwise the engine crashes.
|
||||
fdialog_install->set_access(EditorFileDialog::ACCESS_FILESYSTEM);
|
||||
add_child(fdialog_install);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue