mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] add default icon for scripts created using decorator (fix #31252)
This commit is contained in:
parent
9fd17c8f3c
commit
f9737a9d5f
@ -69,7 +69,8 @@ from qgis.core import (QgsProcessingParameterDefinition,
|
||||
QgsProcessingOutputNumber,
|
||||
QgsProcessingOutputRasterLayer,
|
||||
QgsProcessingOutputVectorLayer,
|
||||
QgsMessageLog)
|
||||
QgsMessageLog,
|
||||
QgsApplication)
|
||||
|
||||
|
||||
def _log(*args, **kw):
|
||||
@ -134,7 +135,7 @@ class AlgWrapper(QgsProcessingAlgorithm):
|
||||
raise NotImplementedError()
|
||||
|
||||
# Wrapper logic
|
||||
def define(self, name, label, group, group_label, help=None, icon=None):
|
||||
def define(self, name, label, group, group_label, help=None, icon=QgsApplication.iconPath("processingScript.svg")):
|
||||
self._name = name
|
||||
self._display = label
|
||||
self._group = group_label
|
||||
|
Loading…
x
Reference in New Issue
Block a user