UI: Use icon in Dopesheet 'Toggle Graph Editor' menu item.

This commit is contained in:
Pablo Vazquez
2019-02-11 15:46:00 +01:00
parent 17ce9f61c3
commit 36aa8499e8

View File

@@ -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'