diff options
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 708be478301..396dee63d1c 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -46,6 +46,8 @@ class TOPBAR_HT_upper_bar(Header): if not screen.show_fullscreen: layout.template_ID_tabs(window, "workspace", new="workspace.workspace_add_menu", unlink="workspace.workspace_delete") + else: + layout.operator("screen.back_to_previous", icon='SCREEN_BACK', text="Back to Previous") layout.separator() @@ -71,8 +73,11 @@ class TOPBAR_HT_upper_bar(Header): layout = self.layout window = context.window + scene = window.scene + # Active workspace view-layer is retrieved through window, not through workspace. layout.template_ID(window, "scene", new="scene.new", unlink="scene.delete") + layout.template_search(window, "view_layer", scene, "view_layers") class TOPBAR_HT_lower_bar(Header): @@ -103,17 +108,8 @@ class TOPBAR_HT_lower_bar(Header): def draw_right(self, context): layout = self.layout - window = context.window - workspace = context.workspace - scene = context.scene - screen = context.screen - - if screen.show_fullscreen: - layout.operator("screen.back_to_previous", icon='SCREEN_BACK', text="Back to Previous") - else: - layout.template_search_preview(window, "screen", workspace, "screens", new="screen.new", unlink="screen.delete", rows=2, cols=6) - # Active workspace view-layer is retrieved through window, not through workspace. - layout.template_search(window, "view_layer", scene, "view_layers") + # Placeholder + layout.operator("ed.undo_history", text="...") class TOPBAR_MT_editor_menus(Menu): |