Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-10-05 21:45:26 +0300
committerHans Goudey <h.goudey@me.com>2022-10-05 21:48:01 +0300
commita096248d1253e5a4436fbc4c2fc1d51539183fc0 (patch)
tree18a2c5bdfaa5ab0d3a6865e87276a01f8628f876 /release
parent548a2cbe06b23d90b0e09da49fc854178c270b8a (diff)
Fix: File menu broken after recent commit
layout.menu does not have a text_context argument. f5d67f3fdf2ddec073898bc60feeb2440f2c1b30
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_topbar.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 2217a7b45bb..ffcf004131c 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -272,9 +272,7 @@ class TOPBAR_MT_file(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.menu("TOPBAR_MT_file_open_recent")
layout.operator("wm.revert_mainfile")