Fix: File context menu broken after recent commit

layout.menu does not have a text_context argument.
f5d67f3fdf
This commit is contained in:
Campbell Barton 2022-10-06 12:49:22 +11:00
parent 86352364a6
commit 68ea6c85ab
1 changed files with 1 additions and 1 deletions

View File

@ -727,7 +727,7 @@ class TOPBAR_MT_file_context_menu(Menu):
layout = self.layout
layout.operator_context = 'INVOKE_AREA'
layout.menu("TOPBAR_MT_file_new", text="New", text_context=i18n_contexts.id_windowmanager, icon='FILE_NEW')
layout.menu("TOPBAR_MT_file_new", text="New", icon='FILE_NEW')
layout.operator("wm.open_mainfile", text="Open...", icon='FILE_FOLDER')
layout.separator()