From 02c4d74a791d585bbe97905a7f97b74e32606d93 Mon Sep 17 00:00:00 2001 From: triplus Date: Mon, 18 Mar 2019 22:35:29 +0100 Subject: [PATCH] Move Accessories menu from tools menu to menu bar --- README.md | 2 +- SelectorToolbar_Gui.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b536767..54c3c32 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/SelectorToolbar_Gui.py b/SelectorToolbar_Gui.py index 810dbbe..55a4b27 100644 --- a/SelectorToolbar_Gui.py +++ b/SelectorToolbar_Gui.py @@ -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)