mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
clear filter input in Project Settings when opening Layers
(cherry picked from commit e13bcf5b84)
This commit is contained in:
committed by
Yuri Sizov
parent
7ac80569b3
commit
5824967f2f
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user