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