From b0dcc39e38030d254208b84830455be0b1507b72 Mon Sep 17 00:00:00 2001 From: Roy-043 <70520633+Roy-043@users.noreply.github.com> Date: Tue, 12 Oct 2021 14:32:36 +0200 Subject: [PATCH] Draft: fix context menu Remove the get_draft_line_commands function. Update the def get_draft_context_commands function. --- src/Mod/Draft/draftutils/init_tools.py | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/Mod/Draft/draftutils/init_tools.py b/src/Mod/Draft/draftutils/init_tools.py index 5851a91315..b1f6fbce60 100644 --- a/src/Mod/Draft/draftutils/init_tools.py +++ b/src/Mod/Draft/draftutils/init_tools.py @@ -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):