mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-12 00:06:54 -05:00
Remove unused argument
This commit is contained in:
parent
2e83566aef
commit
26ce45d6d5
@ -47,7 +47,6 @@ import processing
|
|||||||
from processing.core.ProcessingConfig import ProcessingConfig
|
from processing.core.ProcessingConfig import ProcessingConfig
|
||||||
from processing.gui.MessageBarProgress import MessageBarProgress
|
from processing.gui.MessageBarProgress import MessageBarProgress
|
||||||
from processing.gui.RenderingStyles import RenderingStyles
|
from processing.gui.RenderingStyles import RenderingStyles
|
||||||
from processing.gui.Postprocessing import handleAlgorithmResults
|
|
||||||
from processing.gui.AlgorithmExecutor import execute
|
from processing.gui.AlgorithmExecutor import execute
|
||||||
from processing.script import ScriptUtils
|
from processing.script import ScriptUtils
|
||||||
from processing.tools import dataobjects
|
from processing.tools import dataobjects
|
||||||
|
|||||||
@ -352,7 +352,11 @@ class AlgorithmDialog(QgsProcessingAlgorithmDialogBase):
|
|||||||
resultsList.addResult(icon=self.algorithm().icon(), name=out.description(),
|
resultsList.addResult(icon=self.algorithm().icon(), name=out.description(),
|
||||||
timestamp=time.localtime(),
|
timestamp=time.localtime(),
|
||||||
result=result[out.name()])
|
result=result[out.name()])
|
||||||
if not handleAlgorithmResults(self.algorithm(), context, feedback, not keepOpen, result):
|
if not handleAlgorithmResults(
|
||||||
|
self.algorithm(),
|
||||||
|
context,
|
||||||
|
feedback,
|
||||||
|
result):
|
||||||
self.resetGui()
|
self.resetGui()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@ -379,7 +379,7 @@ def executeIterating(alg, parameters, paramToIter, context, feedback):
|
|||||||
if not ret:
|
if not ret:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
handleAlgorithmResults(alg, context, feedback, False)
|
handleAlgorithmResults(alg, context, feedback)
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -84,7 +84,7 @@ class BatchAlgorithmDialog(QgsProcessingBatchAlgorithmDialogBase):
|
|||||||
self.execute(alg_parameters)
|
self.execute(alg_parameters)
|
||||||
|
|
||||||
def handleAlgorithmResults(self, algorithm, context, feedback, parameters):
|
def handleAlgorithmResults(self, algorithm, context, feedback, parameters):
|
||||||
handleAlgorithmResults(algorithm, context, feedback, False, parameters)
|
handleAlgorithmResults(algorithm, context, feedback, parameters)
|
||||||
|
|
||||||
def loadHtmlResults(self, results, num):
|
def loadHtmlResults(self, results, num):
|
||||||
for out in self.algorithm().outputDefinitions():
|
for out in self.algorithm().outputDefinitions():
|
||||||
|
|||||||
@ -129,7 +129,6 @@ def post_process_layer_tree_layer(layer_tree_layer: QgsLayerTreeLayer):
|
|||||||
def handleAlgorithmResults(alg: QgsProcessingAlgorithm,
|
def handleAlgorithmResults(alg: QgsProcessingAlgorithm,
|
||||||
context: QgsProcessingContext,
|
context: QgsProcessingContext,
|
||||||
feedback: Optional[QgsProcessingFeedback] = None,
|
feedback: Optional[QgsProcessingFeedback] = None,
|
||||||
showResults: bool = True,
|
|
||||||
parameters: Optional[Dict] = None):
|
parameters: Optional[Dict] = None):
|
||||||
if not parameters:
|
if not parameters:
|
||||||
parameters = {}
|
parameters = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user