[Bf-blender-cvs] [872dc1038c4] master: UI: exclude "Undo History" from menu search
Campbell Barton
noreply at git.blender.org
Fri Jan 21 06:35:06 CET 2022
Commit: 872dc1038c42e3d428fac5e6a425c2d788370f58
Author: Campbell Barton
Date: Fri Jan 21 16:28:23 2022 +1100
Branches: master
https://developer.blender.org/rB872dc1038c42e3d428fac5e6a425c2d788370f58
UI: exclude "Undo History" from menu search
Undo history was showing in menu search since converting undo history to
a menu from a popup, see: 0e1bb232e68ce71f4c3dd331ed6331665238a065.
===================================================================
M source/blender/editors/interface/interface_template_search_menu.cc
===================================================================
diff --git a/source/blender/editors/interface/interface_template_search_menu.cc b/source/blender/editors/interface/interface_template_search_menu.cc
index 7a079e01e61..0ce3a0d8af1 100644
--- a/source/blender/editors/interface/interface_template_search_menu.cc
+++ b/source/blender/editors/interface/interface_template_search_menu.cc
@@ -465,6 +465,9 @@ static MenuSearch_Data *menu_items_from_ui_create(
const char *idname_array[] = {
/* While we could include this, it's just showing filenames to load. */
"TOPBAR_MT_file_open_recent",
+ /* Showing undo history is not helpful since users may accidentally undo
+ * an action they intend to run. */
+ "TOPBAR_MT_undo_history",
};
for (int i = 0; i < ARRAY_SIZE(idname_array); i++) {
MenuType *mt = WM_menutype_find(idname_array[i], false);
More information about the Bf-blender-cvs
mailing list