浏览代码

mod: pop-up usability enhancement for support button

Now after choosing support level pop-up doesn't hide after each click
gatalskii 4 年之前
父节点
当前提交
efe05a166e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/plugins/asset_library_editor_plugin.cpp

+ 1 - 0
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);