mod: pop-up usability enhancement for support button

Now after choosing support level pop-up doesn't hide after each click

(cherry picked from commit efe05a166e)
This commit is contained in:
gatalskii 2021-03-07 22:51:40 +03:00 committed by Rémi Verschelde
parent 266282813a
commit f60d27fe16

View file

@ -1455,6 +1455,7 @@ EditorAssetLibrary::EditorAssetLibrary(bool p_templates_only) {
support = memnew(MenuButton);
search_hb2->add_child(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("Community"), SUPPORT_COMMUNITY);
support->get_popup()->add_check_item(TTR("Testing"), SUPPORT_TESTING);