Skip to content

Commit 1eff31a

Browse files
committed
[processing] add 'optional' label to optional parameters in input dialog
1 parent 2e9e954 commit 1eff31a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

python/plugins/processing/gui/ParametersPanel.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,12 @@ def initGUI(self):
105105
continue
106106
desc = param.description
107107
if isinstance(param, ParameterExtent):
108-
desc += '(xmin, xmax, ymin, ymax)'
108+
desc += ' (xmin, xmax, ymin, ymax)'
109+
try:
110+
if param.optional:
111+
desc += ' [optional]'
112+
except:
113+
pass
109114
label = QtGui.QLabel(desc)
110115
self.labels[param.name] = label
111116
widget = self.getWidgetFromParameter(param)

0 commit comments

Comments
 (0)