You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
Use EditorFileDialog eveywhere in the editor
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include "editor/editor_string_names.h"
|
||||
#include "editor/file_system/editor_file_system.h"
|
||||
#include "editor/gui/editor_bottom_panel.h"
|
||||
#include "editor/gui/editor_file_dialog.h"
|
||||
#include "editor/script/script_editor_plugin.h"
|
||||
#include "editor/settings/editor_command_palette.h"
|
||||
#include "editor/settings/editor_settings.h"
|
||||
@@ -1073,7 +1074,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
||||
set_up_ssh_public_key_path->connect(SceneStringName(text_changed), callable_mp(this, &VersionControlEditorPlugin::_update_set_up_warning));
|
||||
set_up_ssh_public_key_input_hbc->add_child(set_up_ssh_public_key_path);
|
||||
|
||||
set_up_ssh_public_key_file_dialog = memnew(FileDialog);
|
||||
set_up_ssh_public_key_file_dialog = memnew(EditorFileDialog);
|
||||
set_up_ssh_public_key_file_dialog->set_access(FileDialog::ACCESS_FILESYSTEM);
|
||||
set_up_ssh_public_key_file_dialog->set_file_mode(FileDialog::FILE_MODE_OPEN_FILE);
|
||||
set_up_ssh_public_key_file_dialog->set_show_hidden_files(true);
|
||||
@@ -1108,7 +1109,7 @@ VersionControlEditorPlugin::VersionControlEditorPlugin() {
|
||||
set_up_ssh_private_key_path->set_accessibility_name(TTRC("SSH Private Key Path"));
|
||||
set_up_ssh_private_key_input_hbc->add_child(set_up_ssh_private_key_path);
|
||||
|
||||
set_up_ssh_private_key_file_dialog = memnew(FileDialog);
|
||||
set_up_ssh_private_key_file_dialog = memnew(EditorFileDialog);
|
||||
set_up_ssh_private_key_file_dialog->set_access(FileDialog::ACCESS_FILESYSTEM);
|
||||
set_up_ssh_private_key_file_dialog->set_file_mode(FileDialog::FILE_MODE_OPEN_FILE);
|
||||
set_up_ssh_private_key_file_dialog->set_show_hidden_files(true);
|
||||
|
||||
Reference in New Issue
Block a user