bugfix [#23174] Text Editor: View Top of File and View Bottom of File not working [Patch to fix attached]
also moved these into the View menu (removed Edit->View)
This commit is contained in:
@@ -140,6 +140,11 @@ class TEXT_MT_view(bpy.types.Menu):
|
||||
|
||||
layout.operator("screen.area_dupli")
|
||||
layout.operator("screen.screen_full_area")
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.operator("text.move", text="Top of File").type = 'FILE_TOP'
|
||||
layout.operator("text.move", text="Bottom of File").type = 'FILE_BOTTOM'
|
||||
|
||||
|
||||
class TEXT_MT_text(bpy.types.Menu):
|
||||
@@ -188,16 +193,6 @@ class TEXT_MT_templates(bpy.types.Menu):
|
||||
self.path_menu(bpy.utils.script_paths("templates"), "text.open", {"internal": True})
|
||||
|
||||
|
||||
class TEXT_MT_edit_view(bpy.types.Menu):
|
||||
bl_label = "View"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
layout.operator("text.move", text="Top of File").type = 'FILE_TOP'
|
||||
layout.operator("text.move", text="Bottom of File").type = 'FILE_BOTTOM'
|
||||
|
||||
|
||||
class TEXT_MT_edit_select(bpy.types.Menu):
|
||||
bl_label = "Select"
|
||||
|
||||
@@ -268,7 +263,6 @@ class TEXT_MT_edit(bpy.types.Menu):
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.menu("TEXT_MT_edit_view")
|
||||
layout.menu("TEXT_MT_edit_select")
|
||||
layout.menu("TEXT_MT_edit_markers")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user