You've already forked godot
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:
@@ -2740,7 +2740,8 @@ void ProjectListFilter::_filter_option_selected(int p_idx) {
|
|||||||
FilterOption selected = (FilterOption)(filter_option->get_selected());
|
FilterOption selected = (FilterOption)(filter_option->get_selected());
|
||||||
if (_current_filter != selected) {
|
if (_current_filter != selected) {
|
||||||
_current_filter = selected;
|
_current_filter = selected;
|
||||||
emit_signal("filter_changed");
|
if (is_inside_tree())
|
||||||
|
emit_signal("filter_changed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user