Move Accessories menu from tools menu to menu bar
This commit is contained in:
parent
44c8549d24
commit
02c4d74a79
|
@ -21,4 +21,4 @@ Windows:
|
|||
|
||||
### Usage:
|
||||
|
||||
Selector toolbar provides a point and click experience for changing FreeCAD workbenches. Preferences can be located in menu bar under Tools -> Accessories -> Selector toolbar.
|
||||
Selector toolbar provides a point and click experience for changing FreeCAD workbenches. Preferences can be located in menu bar under Accessories -> Selector toolbar.
|
||||
|
|
|
@ -450,10 +450,8 @@ def accessoriesMenu():
|
|||
|
||||
def addMenu():
|
||||
"""Add accessories menu to the menu bar."""
|
||||
toolsMenu = mb.findChild(QtGui.QMenu, "&Tools")
|
||||
if toolsMenu:
|
||||
toolsMenu.addAction(actionAccessories)
|
||||
actionAccessories.setVisible(True)
|
||||
mb.addAction(actionAccessories)
|
||||
actionAccessories.setVisible(True)
|
||||
|
||||
addMenu()
|
||||
mw.workbenchActivated.connect(addMenu)
|
||||
|
|
Loading…
Reference in New Issue
Block a user