clear filter input in Project Settings when opening Layers
(cherry picked from commit e13bcf5b84
)
This commit is contained in:
parent
7ac80569b3
commit
5824967f2f
@ -1210,7 +1210,7 @@ void EditorPropertyLayers::_button_pressed() {
|
|||||||
|
|
||||||
void EditorPropertyLayers::_menu_pressed(int p_menu) {
|
void EditorPropertyLayers::_menu_pressed(int p_menu) {
|
||||||
if (p_menu == grid->layer_count) {
|
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);
|
ProjectSettingsEditor::get_singleton()->set_general_page(basename);
|
||||||
} else {
|
} else {
|
||||||
if (grid->value & (1 << p_menu)) {
|
if (grid->value & (1 << p_menu)) {
|
||||||
|
@ -1398,7 +1398,7 @@ void EditorAssetLibrary::_asset_open() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EditorAssetLibrary::_manage_plugins() {
|
void EditorAssetLibrary::_manage_plugins() {
|
||||||
ProjectSettingsEditor::get_singleton()->popup_project_settings();
|
ProjectSettingsEditor::get_singleton()->popup_project_settings(true);
|
||||||
ProjectSettingsEditor::get_singleton()->set_plugins_page();
|
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);
|
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.
|
// Restore valid window bounds or pop up at default size.
|
||||||
Rect2 saved_size = EditorSettings::get_singleton()->get_project_metadata("dialog_bounds", "project_settings", Rect2());
|
Rect2 saved_size = EditorSettings::get_singleton()->get_project_metadata("dialog_bounds", "project_settings", Rect2());
|
||||||
if (saved_size != Rect2()) {
|
if (saved_size != Rect2()) {
|
||||||
@ -62,6 +62,10 @@ void ProjectSettingsEditor::popup_project_settings() {
|
|||||||
autoload_settings->update_autoload();
|
autoload_settings->update_autoload();
|
||||||
plugin_settings->update_plugins();
|
plugin_settings->update_plugins();
|
||||||
import_defaults_editor->clear();
|
import_defaults_editor->clear();
|
||||||
|
|
||||||
|
if (p_clear_filter) {
|
||||||
|
search_box->clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProjectSettingsEditor::queue_save() {
|
void ProjectSettingsEditor::queue_save() {
|
||||||
|
@ -116,7 +116,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
static ProjectSettingsEditor *get_singleton() { return singleton; }
|
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_plugins_page();
|
||||||
void set_general_page(const String &p_category);
|
void set_general_page(const String &p_category);
|
||||||
void update_plugins();
|
void update_plugins();
|
||||||
|
Loading…
Reference in New Issue
Block a user