You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
[Scene] Add SceneStringNames::item_selected
This commit is contained in:
@@ -1643,7 +1643,7 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) {
|
||||
|
||||
sort->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
sort->set_clip_text(true);
|
||||
sort->connect("item_selected", callable_mp(this, &EditorAssetLibrary::_rerun_search));
|
||||
sort->connect(SceneStringName(item_selected), callable_mp(this, &EditorAssetLibrary::_rerun_search));
|
||||
|
||||
search_hb2->add_child(memnew(VSeparator));
|
||||
|
||||
@@ -1653,7 +1653,7 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) {
|
||||
search_hb2->add_child(categories);
|
||||
categories->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
categories->set_clip_text(true);
|
||||
categories->connect("item_selected", callable_mp(this, &EditorAssetLibrary::_rerun_search));
|
||||
categories->connect(SceneStringName(item_selected), callable_mp(this, &EditorAssetLibrary::_rerun_search));
|
||||
|
||||
search_hb2->add_child(memnew(VSeparator));
|
||||
|
||||
@@ -1662,7 +1662,7 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) {
|
||||
|
||||
_update_repository_options();
|
||||
|
||||
repository->connect("item_selected", callable_mp(this, &EditorAssetLibrary::_repository_changed));
|
||||
repository->connect(SceneStringName(item_selected), callable_mp(this, &EditorAssetLibrary::_repository_changed));
|
||||
|
||||
search_hb2->add_child(repository);
|
||||
repository->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
|
||||
Reference in New Issue
Block a user