Skip to content

Commit

Permalink
use deprecated flag instead of hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Dec 10, 2019
1 parent f803b7b commit 3910d77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/SetRasterStyle.py
Expand Up @@ -48,7 +48,7 @@ def __init__(self):
super().__init__()

def flags(self):
return super().flags() | QgsProcessingAlgorithm.FlagNoThreading | QgsProcessingAlgorithm.FlagHideFromToolbox
return super().flags() | QgsProcessingAlgorithm.FlagNoThreading | QgsProcessingAlgorithm.FlagDeprecated

def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterRasterLayer(self.INPUT,
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/qgis/SetVectorStyle.py
Expand Up @@ -44,7 +44,7 @@ def __init__(self):
super().__init__()

def flags(self):
return super().flags() | QgsProcessingAlgorithm.FlagNoThreading | QgsProcessingAlgorithm.FlagHideFromToolbox
return super().flags() | QgsProcessingAlgorithm.FlagNoThreading | QgsProcessingAlgorithm.FlagDeprecated

def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterVectorLayer(self.INPUT,
Expand Down
Expand Up @@ -70,7 +70,7 @@ def __init__(self):
super().__init__()

def flags(self):
return QgsProcessingAlgorithm.FlagSupportsBatch | QgsProcessingAlgorithm.FlagCanCancel | QgsProcessingAlgorithm.FlagHideFromToolbox
return QgsProcessingAlgorithm.FlagSupportsBatch | QgsProcessingAlgorithm.FlagCanCancel | QgsProcessingAlgorithm.FlagDeprecated

def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterFeatureSource(self.INPUT,
Expand Down

0 comments on commit 3910d77

Please sign in to comment.