mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Better (finer) proxy task progress reporting for batch execution
This commit is contained in:
parent
45bc2a0798
commit
0ea283190b
@ -119,6 +119,7 @@ class BatchAlgorithmDialog(QgsProcessingAlgorithmDialogBase):
|
||||
|
||||
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 @@ class BatchAlgorithmDialog(QgsProcessingAlgorithmDialogBase):
|
||||
break
|
||||
self.setProgressText(QCoreApplication.translate('BatchAlgorithmDialog', '\nProcessing algorithm {0}/{1}…').format(count + 1, len(alg_parameters)))
|
||||
self.setInfo(self.tr('<b>Algorithm {0} starting…</b>').format(self.algorithm().displayName()), escapeHtml=False)
|
||||
task.setProgress(100 * count / len(alg_parameters))
|
||||
multi_feedback.setCurrentStep(count)
|
||||
|
||||
parameters = self.algorithm().preprocessParameters(parameters)
|
||||
|
Loading…
x
Reference in New Issue
Block a user