diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-24 13:19:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-24 13:19:05 +0100 |
commit | 049d654c49b3b385998a23af0317d22511833c95 (patch) | |
tree | 71d08472f45195d184d77aff7ef01ed6f94b462b /editor/project_settings_editor.cpp | |
parent | a9304723192cc361188ced958415bad06bc08b7f (diff) | |
parent | b6fce5d75030e4333da8ddeb79224cb5d579a8c4 (diff) |
Merge pull request #46354 from reduz/importer-defaults-editor
Added Import Defaults Editor in Project Settings
Diffstat (limited to 'editor/project_settings_editor.cpp')
-rw-r--r-- | editor/project_settings_editor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp index 6e2cd72796..d7d12903e0 100644 --- a/editor/project_settings_editor.cpp +++ b/editor/project_settings_editor.cpp @@ -52,6 +52,7 @@ void ProjectSettingsEditor::popup_project_settings() { localization_editor->update_translations(); autoload_settings->update_autoload(); plugin_settings->update_plugins(); + import_defaults_editor->clear(); } void ProjectSettingsEditor::queue_save() { @@ -692,4 +693,9 @@ ProjectSettingsEditor::ProjectSettingsEditor(EditorData *p_data) { } inspector->set_restrict_to_basic_settings(!use_advanced); + + import_defaults_editor = memnew(ImportDefaultsEditor); + import_defaults_editor->set_name(TTR("Import Defaults")); + tab_container->add_child(import_defaults_editor); + import_defaults_editor->connect("project_settings_changed", callable_mp(this, &ProjectSettingsEditor::queue_save)); } |