Fix T52466: Silence search for button_context menu type.
We were showing "search for unknown menutype WM_MT_button_context" messages in terminal which were not helpful for users, so now they are disabled. To be backported to 2.79
This commit is contained in:
parent
9997f5ca91
commit
8cb217069e
|
@ -7064,7 +7064,7 @@ static bool ui_but_menu(bContext *C, uiBut *but)
|
|||
}
|
||||
uiItemFullO(layout, "UI_OT_edittranslation_init", NULL, ICON_NONE, NULL, WM_OP_INVOKE_DEFAULT, 0);
|
||||
|
||||
mt = WM_menutype_find("WM_MT_button_context", false);
|
||||
mt = WM_menutype_find("WM_MT_button_context", true);
|
||||
if (mt) {
|
||||
Menu menu = {NULL};
|
||||
menu.layout = uiLayoutColumn(layout, false);
|
||||
|
|
Loading…
Reference in New Issue