Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Better (finer) proxy task progress reporting for batch execution
  • Loading branch information
nyalldawson committed Sep 7, 2018
1 parent 45bc2a0 commit 0ea2831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/BatchAlgorithmDialog.py
Expand Up @@ -119,6 +119,7 @@ def accept(self):

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

with OverrideCursor(Qt.WaitCursor):

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

parameters = self.algorithm().preprocessParameters(parameters)
Expand Down

0 comments on commit 0ea2831

Please sign in to comment.