diff options
author | Pablo Vazquez <venomgfx@gmail.com> | 2019-05-16 17:55:56 +0300 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2019-05-16 17:56:03 +0300 |
commit | c1ec6f00f278d823a7208c4cc3e44f58e20455a3 (patch) | |
tree | e2ba0294c9277ee34b4e847e439757d7253ed968 /release/scripts/startup/bl_ui/space_topbar.py | |
parent | 8d2c42c9bc8ecc98d4dcd7c1f574cfe4176b1309 (diff) |
UI: Move Recover operators into own menu under File.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_topbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index dfd99b1f17b..2f23cf33aa2 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -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, |