mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[processing] add object name to custom menus
This commit is contained in:
parent
e040cbd644
commit
e6f1439c0a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user