Fix T75222: Crash activating menu search

This commit is contained in:
Campbell Barton
2020-04-01 20:59:50 +11:00
parent 186ac84210
commit ca0dcd830c
2 changed files with 12 additions and 5 deletions

View File

@@ -208,7 +208,7 @@ class TOPBAR_MT_editor_menus(Menu):
layout = self.layout
# Allow calling this menu directly (this might not be a header area).
if getattr(context.area, "show_menus"):
if getattr(context.area, "show_menus", False):
layout.menu("TOPBAR_MT_app", text="", icon='BLENDER')
else:
layout.menu("TOPBAR_MT_app", text="Blender")