Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[processing] add object name to custom menus
- Loading branch information
Showing
with
2 additions
and
1 deletion.
-
+2
−1
python/plugins/processing/gui/menus.py
|
@@ -156,7 +156,8 @@ def removeMenus(): |
|
|
def addAlgorithmEntry(alg, menuName, submenuName, actionText=None, icon=None, addButton=False): |
|
|
action = QAction(icon or alg.getIcon(), actionText or alg.name, iface.mainWindow()) |
|
|
action.triggered.connect(lambda: _executeAlgorithm(alg)) |
|
|
|
|
|
action.setObjectName("mProcessingUserMenu_%s" % alg.commandLineName()) |
|
|
|
|
|
if menuName: |
|
|
menu = getMenu(menuName, iface.mainWindow().menuBar()) |
|
|
submenu = getMenu(submenuName, menu) |
|
|