diff options
author | yedpodtrzitko <yed@vanyli.net> | 2023-03-10 18:10:05 +0800 |
---|---|---|
committer | yedpodtrzitko <yed@vanyli.net> | 2023-03-10 20:18:37 +0800 |
commit | e13bcf5b845fba1dbb2bbb02c8f14e7d3733a188 (patch) | |
tree | 298629667f5f560f61bf96644c1ddb85c3e66361 /editor/project_settings_editor.cpp | |
parent | c1128e911ccd6f1e8c35646df804d894652a58f1 (diff) | |
download | redot-engine-e13bcf5b845fba1dbb2bbb02c8f14e7d3733a188.tar.gz |
clear filter input in Project Settings when opening Layers
Diffstat (limited to 'editor/project_settings_editor.cpp')
-rw-r--r-- | editor/project_settings_editor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp index 374ce98d63..c8fbd76f69 100644 --- a/editor/project_settings_editor.cpp +++ b/editor/project_settings_editor.cpp @@ -45,7 +45,7 @@ void ProjectSettingsEditor::connect_filesystem_dock_signals(FileSystemDock *p_fs localization_editor->connect_filesystem_dock_signals(p_fs_dock); } -void ProjectSettingsEditor::popup_project_settings() { +void ProjectSettingsEditor::popup_project_settings(bool p_clear_filter) { // Restore valid window bounds or pop up at default size. Rect2 saved_size = EditorSettings::get_singleton()->get_project_metadata("dialog_bounds", "project_settings", Rect2()); if (saved_size != Rect2()) { @@ -62,6 +62,10 @@ void ProjectSettingsEditor::popup_project_settings() { autoload_settings->update_autoload(); plugin_settings->update_plugins(); import_defaults_editor->clear(); + + if (p_clear_filter) { + search_box->clear(); + } } void ProjectSettingsEditor::queue_save() { |