From 6aef124e7d2869a692dd564a4515f2304924da33 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 18 Apr 2019 12:16:03 +0200 Subject: UI: move region toggling to properties Each space had separate operators, duplicating logic. Use RNA properties instead so adding the ability to toggle other region types (floating redo region for eg) doesn't need to have an extra operator per space type. It's also nicer to show a check-box for something which can be toggled. --- release/scripts/startup/bl_ui/space_clip.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'release/scripts/startup/bl_ui/space_clip.py') diff --git a/release/scripts/startup/bl_ui/space_clip.py b/release/scripts/startup/bl_ui/space_clip.py index 436a87c2e93..32c8d9af0bc 100644 --- a/release/scripts/startup/bl_ui/space_clip.py +++ b/release/scripts/startup/bl_ui/space_clip.py @@ -1231,8 +1231,9 @@ class CLIP_MT_view(Menu): sc = context.space_data if sc.view == 'CLIP': - layout.operator("clip.properties", icon='MENU_PANEL') - layout.operator("clip.tools", icon='MENU_PANEL') + layout.prop(sc, "show_region_ui") + layout.prop(sc, "show_region_toolbar") + layout.separator() layout.operator("clip.view_selected") -- cgit v1.2.3