Skip to content

Commit 5ebe5d6

Browse files
committed
show variableDescription as shown in the list of variables
1 parent 0acb766 commit 5ebe5d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/plugins/processing/algs/qgis/ui/RasterCalculatorWidgets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,11 @@ def createWidget(self):
214214
return QLineEdit()
215215
else:
216216
layers = self.dialog.getAvailableValuesOfType([QgsProcessingParameterRasterLayer], [QgsProcessingOutputRasterLayer])
217-
options = {self.dialog.resolveValueDescription(lyr): "{}@1".format(lyr) for lyr in layers}
217+
options = {self.dialog.resolveValueDescription(lyr): "{}@1".format(self.dialog.resolveValueDescription(lyr)) for lyr in layers}
218218
return self._panel(options)
219219

220220
def refresh(self):
221+
# TODO: check if avoid code duplication with self.createWidget
221222
layers = QgsProcessingUtils.compatibleRasterLayers(QgsProject.instance())
222223
options = {}
223224
for lyr in layers:

0 commit comments

Comments
 (0)