diff options
author | gatalskii <gatalskii@gmail.com> | 2021-03-07 22:51:40 +0300 |
---|---|---|
committer | gatalskii <gatalskii@gmail.com> | 2021-03-07 22:51:40 +0300 |
commit | efe05a166e03c087fe0a301fb7bfd3c256eaa354 (patch) | |
tree | 0e5beaa673fd12c86b9f5da2f2efe3961f115d9c /editor/plugins | |
parent | 9b853d7a7b12f11e98e8c12b2e4ba96f4111add8 (diff) |
mod: pop-up usability enhancement for support button
Now after choosing support level pop-up doesn't hide after each click
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/asset_library_editor_plugin.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/asset_library_editor_plugin.cpp b/editor/plugins/asset_library_editor_plugin.cpp index 4d9c5625a3..79ff3646c6 100644 --- a/editor/plugins/asset_library_editor_plugin.cpp +++ b/editor/plugins/asset_library_editor_plugin.cpp @@ -1394,6 +1394,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); |