diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-08-23 17:13:52 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-09-11 13:43:28 +0300 |
commit | e1178266e713ae7184fc60c3ecb93d42d8b28a53 (patch) | |
tree | 5cea7a841344925a7423a3b50205c0acfbd08074 /release | |
parent | 6acf8642e5c464a0879cf37e3f39cd3e526a2019 (diff) |
Workspace: support reordering of workspaces from RMB menu.
Drag and drop will follow later, it's a bit complicated to make this work
reliable in the current UI code.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 06bdc9ee59e..ce4a1ad8c74 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -613,6 +613,11 @@ class TOPBAR_MT_workspace_menu(Menu): if len(bpy.data.workspaces) > 1: layout.operator("workspace.delete", text="Delete") + layout.separator() + + layout.operator("workspace.reorder_to_front", text="Reorder to Front") + layout.operator("workspace.reorder_to_back", text="Reorder to Back") + class TOPBAR_PT_active_tool(Panel): bl_space_type = 'PROPERTIES' |