Draft: fix context menu

Remove the get_draft_line_commands function.
Update the def get_draft_context_commands function.
This commit is contained in:
Roy-043
2021-10-12 14:32:36 +02:00
committed by GitHub
parent eb0c45ce63
commit f03dfe351e

View File

@@ -159,22 +159,20 @@ def get_draft_snap_commands():
def get_draft_context_commands():
"""Return the context menu commands list."""
return ["Draft_ApplyStyle",
"Draft_ToggleDisplayMode",
return ["Draft_SetStyle",
"Draft_ApplyStyle",
"Separator",
"Draft_Layer",
"Draft_AddNamedGroup",
"Draft_AddToGroup",
"Draft_SelectGroup",
"Draft_SelectPlane",
"Draft_ShowSnapBar",
"Draft_ToggleConstructionMode",
"Draft_AddConstruction",
"Separator",
"Draft_ToggleDisplayMode",
"Draft_ToggleGrid",
"Draft_SetStyle"]
def get_draft_line_commands():
"""Return the line commands list."""
return ["Draft_UndoLine",
"Draft_FinishLine",
"Draft_CloseLine"]
"Draft_SelectPlane",
"Draft_WorkingPlaneProxy"]
def init_toolbar(workbench, toolbar, cmd_list):