1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Signals: filter_changed from ProjectListFilter now is emitted when it's on scene tree to avoid unexpected call

This commit is contained in:
Mateo Miccino
2020-03-06 11:21:14 -03:00
parent 8cb6d5daa4
commit 86b48093eb

View File

@@ -2740,6 +2740,7 @@ void ProjectListFilter::_filter_option_selected(int p_idx) {
FilterOption selected = (FilterOption)(filter_option->get_selected());
if (_current_filter != selected) {
_current_filter = selected;
if (is_inside_tree())
emit_signal("filter_changed");
}
}