Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Ondsell #53

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions InitFeedsAndSpeeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def getIcon(iconName):

def updateMenu(workbench):

if workbench == 'PathWorkbench':
if workbench == 'PathWorkbench' or workbench == 'CAMWorkbench' :

print('Feeds and Speeds Addon loaded:', workbench)

Expand All @@ -44,6 +44,8 @@ def updateMenu(workbench):

# Find the main path menu
pathMenu = mw.findChild(QtGui.QMenu, "&Path")
if pathMenu is None:
pathMenu = mw.findChild(QtGui.QMenu, "&CAM")

for menu in pathMenu.actions():
if menu.text() == "Path Addons":
Expand Down Expand Up @@ -71,4 +73,4 @@ def updateMenu(workbench):
# append this addon to addon menu
addonMenu.addAction(action)

FreeCADGui.getMainWindow().workbenchActivated.connect(updateMenu)
FreeCADGui.getMainWindow().workbenchActivated.connect(updateMenu)
Loading