From bc89f01690953967b15522a5f4195a1b44d82a2c Mon Sep 17 00:00:00 2001 From: Olivier Dalang Date: Fri, 22 Dec 2023 16:26:54 +0100 Subject: [PATCH] skip_logic: implement on timemap's advanced params --- travel_time_platform_plugin/algorithms/advanced.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/travel_time_platform_plugin/algorithms/advanced.py b/travel_time_platform_plugin/algorithms/advanced.py index 1a82486..b53b250 100644 --- a/travel_time_platform_plugin/algorithms/advanced.py +++ b/travel_time_platform_plugin/algorithms/advanced.py @@ -502,6 +502,7 @@ def initAlgorithm(self, config): help_text=tr( "Set which fields should be joined back in the output layer." ), + depends_on="INPUT_" + DEPARR + "_SEARCHES", ) self.addParameter( QgsProcessingParameterExpression( @@ -515,6 +516,7 @@ def initAlgorithm(self, config): help_text=tr( "Specifies level of detail of returned shape using scale type `simple`. Allowed values: lowest, low, medium, high, highest." ), + depends_on="INPUT_" + DEPARR + "_SEARCHES", ) self.addParameter( QgsProcessingParameterExpression( @@ -528,6 +530,7 @@ def initAlgorithm(self, config): help_text=tr( "Enable to return only one shape from the search results. The returned shape will be approximately the biggest one among search results. Note that this will likely result in loss in accuracy." ), + depends_on="INPUT_" + DEPARR + "_SEARCHES", ) self.addParameter( QgsProcessingParameterExpression( @@ -541,6 +544,7 @@ def initAlgorithm(self, config): help_text=tr( "Enable to remove holes from returned polygons. Note that this will likely result in loss in accuracy." ), + depends_on="INPUT_" + DEPARR + "_SEARCHES", ) # Define additional input parameters