mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
[processing] Use silent feedback by default in processing.run
Relying on the iface messagebar feedback as a fallback is not safe for standalone scripts. If callers want to use a message bar feedback they should specify this feedback object specifically when calling processing.run
This commit is contained in:
parent
bf0c4f9413
commit
d5573a5a7b
@ -116,7 +116,7 @@ class Processing(object):
|
||||
alg = QgsApplication.processingRegistry().createAlgorithmById(algOrName)
|
||||
|
||||
if feedback is None:
|
||||
feedback = MessageBarProgress(alg.displayName() if alg else Processing.tr('Processing'))
|
||||
feedback = QgsProcessingFeedback()
|
||||
|
||||
if alg is None:
|
||||
# fix_print_with_import
|
||||
|
Loading…
x
Reference in New Issue
Block a user