소스 검색

Merge pull request #46771 from socket220/master

pop-up usability enhancement for support-level button
Rémi Verschelde 4 년 전
부모
커밋
14f330c95e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      editor/plugins/asset_library_editor_plugin.cpp

+ 1 - 0
editor/plugins/asset_library_editor_plugin.cpp

@@ -1396,6 +1396,7 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) {
 	support = memnew(MenuButton);
 	support = memnew(MenuButton);
 	search_hb2->add_child(support);
 	search_hb2->add_child(support);
 	support->set_text(TTR("Support"));
 	support->set_text(TTR("Support"));
+	support->get_popup()->set_hide_on_checkable_item_selection(false);
 	support->get_popup()->add_check_item(TTR("Official"), SUPPORT_OFFICIAL);
 	support->get_popup()->add_check_item(TTR("Official"), SUPPORT_OFFICIAL);
 	support->get_popup()->add_check_item(TTR("Community"), SUPPORT_COMMUNITY);
 	support->get_popup()->add_check_item(TTR("Community"), SUPPORT_COMMUNITY);
 	support->get_popup()->add_check_item(TTR("Testing"), SUPPORT_TESTING);
 	support->get_popup()->add_check_item(TTR("Testing"), SUPPORT_TESTING);