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: 0e1bb232e6
.
This commit is contained in:
parent
53923f502d
commit
872dc1038c
Notes:
blender-bot
2023-02-13 16:29:55 +01:00
Referenced by issue #94976, Search Menu shows Undo History entries, making it easy to lose work
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue