Skip to content
Permalink
Browse files

Better (finer) proxy task progress reporting for batch execution

  • Loading branch information
nyalldawson committed Sep 7, 2018
1 parent 45bc2a0 commit 0ea283190bf21f080d9d82b66be88d30147bd6c3
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/gui/BatchAlgorithmDialog.py
@@ -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):

@@ -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)

0 comments on commit 0ea2831

Please sign in to comment.
You can’t perform that action at this time.