forked from bartvdbraak/blender
UI: Move Recover operators into own menu under File.
This commit is contained in:
parent
8d2c42c9bc
commit
c1ec6f00f2
@ -234,8 +234,7 @@ class TOPBAR_MT_file(Menu):
|
||||
layout.operator("wm.open_mainfile", text="Open...", icon='FILE_FOLDER')
|
||||
layout.menu("TOPBAR_MT_file_open_recent")
|
||||
layout.operator("wm.revert_mainfile")
|
||||
layout.operator("wm.recover_last_session")
|
||||
layout.operator("wm.recover_auto_save", text="Recover Auto Save...")
|
||||
layout.menu("TOPBAR_MT_file_recover")
|
||||
|
||||
layout.separator()
|
||||
|
||||
@ -329,6 +328,16 @@ class TOPBAR_MT_file_new(Menu):
|
||||
TOPBAR_MT_file_new.draw_ex(self.layout, context)
|
||||
|
||||
|
||||
class TOPBAR_MT_file_recover(Menu):
|
||||
bl_label = "Recover"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
layout.operator("wm.recover_last_session", text="Last Session")
|
||||
layout.operator("wm.recover_auto_save", text="Auto Save...")
|
||||
|
||||
|
||||
class TOPBAR_MT_app_about(Menu):
|
||||
bl_label = "About"
|
||||
|
||||
@ -762,6 +771,7 @@ classes = (
|
||||
TOPBAR_MT_app_support,
|
||||
TOPBAR_MT_file,
|
||||
TOPBAR_MT_file_new,
|
||||
TOPBAR_MT_file_recover,
|
||||
TOPBAR_MT_templates_more,
|
||||
TOPBAR_MT_file_import,
|
||||
TOPBAR_MT_file_export,
|
||||
|
Loading…
Reference in New Issue
Block a user