UI: Use icon in Dopesheet 'Toggle Graph Editor' menu item.
This commit is contained in:
@@ -354,7 +354,7 @@ class DOPESHEET_MT_view(Menu):
|
||||
|
||||
# Add this to show key-binding (reverse action in dope-sheet).
|
||||
layout.separator()
|
||||
props = layout.operator("wm.context_set_enum", text="Toggle Graph Editor")
|
||||
props = layout.operator("wm.context_set_enum", text="Toggle Graph Editor", icon="GRAPH")
|
||||
props.data_path = "area.type"
|
||||
props.value = 'GRAPH_EDITOR'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user