[Draft] Context menu bugfix
If "Line" is not translated, the menu is not appended
This commit is contained in:
committed by
Yorik van Havre
parent
2f0208ba06
commit
21f8b80f55
@@ -155,6 +155,7 @@ class DraftWorkbench(Workbench):
|
||||
Log("Draft workbench deactivated\n")
|
||||
|
||||
def ContextMenu(self, recipient):
|
||||
from DraftGui import translate
|
||||
if recipient == "View":
|
||||
if FreeCAD.activeDraftCommand is None:
|
||||
if FreeCADGui.Selection.getSelection():
|
||||
@@ -163,7 +164,8 @@ class DraftWorkbench(Workbench):
|
||||
else:
|
||||
self.appendContextMenu("Draft", self.cmdList)
|
||||
else:
|
||||
if FreeCAD.activeDraftCommand.featureName == "Line":
|
||||
if FreeCAD.activeDraftCommand.featureName == translate("draft","Line"):
|
||||
# BUG: line subcommands are not usable while another command is active
|
||||
self.appendContextMenu("", self.lineList)
|
||||
else:
|
||||
if FreeCADGui.Selection.getSelection():
|
||||
|
||||
Reference in New Issue
Block a user