Skip to content

Commit 0ea2831

Browse files
committed
Better (finer) proxy task progress reporting for batch execution
1 parent 45bc2a0 commit 0ea2831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/gui/BatchAlgorithmDialog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def accept(self):
119119

120120
task = QgsScopedProxyProgressTask(self.tr('Batch Processing - {0}').format(self.algorithm().displayName()))
121121
multi_feedback = QgsProcessingMultiStepFeedback(len(alg_parameters), feedback)
122+
feedback.progressChanged.connect(task.setProgress)
122123

123124
with OverrideCursor(Qt.WaitCursor):
124125

@@ -140,7 +141,6 @@ def accept(self):
140141
break
141142
self.setProgressText(QCoreApplication.translate('BatchAlgorithmDialog', '\nProcessing algorithm {0}/{1}…').format(count + 1, len(alg_parameters)))
142143
self.setInfo(self.tr('<b>Algorithm {0} starting&hellip;</b>').format(self.algorithm().displayName()), escapeHtml=False)
143-
task.setProgress(100 * count / len(alg_parameters))
144144
multi_feedback.setCurrentStep(count)
145145

146146
parameters = self.algorithm().preprocessParameters(parameters)

0 commit comments

Comments
 (0)