Skip to content
Permalink
Browse files
provider enabled/disabled via Plugin Manager
  • Loading branch information
alexbruy committed Jun 21, 2021
1 parent cbe1a47 commit d7faf9c1aae384deac64dc5591dda09bc858820f
Showing with 0 additions and 15 deletions.
  1. +0 −15 python/plugins/grassprovider/Grass7AlgorithmProvider.py
@@ -38,7 +38,6 @@

class Grass7AlgorithmProvider(QgsProcessingProvider):
descriptionFolder = Grass7Utils.grassDescriptionPath()
activateSetting = "ACTIVATE_GRASS7"

def __init__(self):
super().__init__()
@@ -47,9 +46,6 @@ def __init__(self):
def load(self):
with QgsRuntimeProfiler.profile('Grass Provider'):
ProcessingConfig.settingIcons[self.name()] = self.icon()
if self.activateSetting:
ProcessingConfig.addSetting(Setting(self.name(), self.activateSetting,
self.tr('Activate'), True))
ProcessingConfig.addSetting(Setting(
self.name(),
Grass7Utils.GRASS_LOG_COMMANDS,
@@ -84,23 +80,12 @@ def load(self):
return True

def unload(self):
if self.activateSetting:
ProcessingConfig.removeSetting(self.activateSetting)
ProcessingConfig.removeSetting(Grass7Utils.GRASS_LOG_COMMANDS)
ProcessingConfig.removeSetting(Grass7Utils.GRASS_LOG_CONSOLE)
ProcessingConfig.removeSetting(Grass7Utils.GRASS_HELP_PATH)
ProcessingConfig.removeSetting(Grass7Utils.GRASS_USE_REXTERNAL)
ProcessingConfig.removeSetting(Grass7Utils.GRASS_USE_VEXTERNAL)

def isActive(self):
if self.activateSetting:
return ProcessingConfig.getSetting(self.activateSetting)
return True

def setActive(self, active):
if self.activateSetting:
ProcessingConfig.setSettingValue(self.activateSetting, active)

def createAlgsList(self):
algs = []
folder = self.descriptionFolder

0 comments on commit d7faf9c

Please sign in to comment.