mirror of
https://github.com/godotengine/godot
synced 2024-09-05 21:39:38 +00:00
Merge pull request #36855 from kuruk-mm/signals_fix_sort_crash
Signals: filter_changed from ProjectListFilter now is emitted when it's on scene tree...
This commit is contained in:
commit
78adce833b
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue