mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -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,
|
QgsProcessingOutputNumber,
|
||||||
QgsProcessingOutputRasterLayer,
|
QgsProcessingOutputRasterLayer,
|
||||||
QgsProcessingOutputVectorLayer,
|
QgsProcessingOutputVectorLayer,
|
||||||
QgsMessageLog)
|
QgsMessageLog,
|
||||||
|
QgsApplication)
|
||||||
|
|
||||||
|
|
||||||
def _log(*args, **kw):
|
def _log(*args, **kw):
|
||||||
@ -134,7 +135,7 @@ class AlgWrapper(QgsProcessingAlgorithm):
|
|||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
# Wrapper logic
|
# 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._name = name
|
||||||
self._display = label
|
self._display = label
|
||||||
self._group = group_label
|
self._group = group_label
|
||||||
|
Loading…
x
Reference in New Issue
Block a user