Merge pull request #74710 from yedpodtrzitko/yed/layers-clear-filter
Clear filter in Project Settings when opening Layer Names
This commit is contained in:
commit
d8e242cba8
4 changed files with 8 additions and 4 deletions
|
@ -1210,7 +1210,7 @@ void EditorPropertyLayers::_button_pressed() {
|
|||
|
||||
void EditorPropertyLayers::_menu_pressed(int p_menu) {
|
||||
if (p_menu == grid->layer_count) {
|
||||
ProjectSettingsEditor::get_singleton()->popup_project_settings();
|
||||
ProjectSettingsEditor::get_singleton()->popup_project_settings(true);
|
||||
ProjectSettingsEditor::get_singleton()->set_general_page(basename);
|
||||
} else {
|
||||
if (grid->value & (1 << p_menu)) {
|
||||
|
|
|
@ -1398,7 +1398,7 @@ void EditorAssetLibrary::_asset_open() {
|
|||
}
|
||||
|
||||
void EditorAssetLibrary::_manage_plugins() {
|
||||
ProjectSettingsEditor::get_singleton()->popup_project_settings();
|
||||
ProjectSettingsEditor::get_singleton()->popup_project_settings(true);
|
||||
ProjectSettingsEditor::get_singleton()->set_plugins_page();
|
||||
}
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -116,7 +116,7 @@ protected:
|
|||
|
||||
public:
|
||||
static ProjectSettingsEditor *get_singleton() { return singleton; }
|
||||
void popup_project_settings();
|
||||
void popup_project_settings(bool p_clear_filter = false);
|
||||
void set_plugins_page();
|
||||
void set_general_page(const String &p_category);
|
||||
void update_plugins();
|
||||
|
|
Loading…
Reference in a new issue