Skip to content
Permalink
Browse files

[processing][saga] Stop showing 'available providers' tip for SAGA, w…

…hen it's not available anyway
  • Loading branch information
nyalldawson committed Jul 16, 2018
1 parent 7f9b0f8 commit 318098805e8abd9e7ad19ca91476baedda6fce14
@@ -80,6 +80,12 @@ def isActive(self):
def setActive(self, active):
ProcessingConfig.setSettingValue('ACTIVATE_SAGA', active)

def canBeActivated(self):
version = SagaUtils.getInstalledVersion(True)
if version is not None and version.startswith(REQUIRED_VERSION):
return True
return False

def loadAlgorithms(self):
version = SagaUtils.getInstalledVersion(True)
if version is None:
@@ -114,7 +114,7 @@ def disabledProviders(self):
return False

for provider in QgsApplication.processingRegistry().providers():
if not provider.isActive():
if not provider.isActive() and provider.canBeActivated():
return True

return False

0 comments on commit 3180988

Please sign in to comment.
You can’t perform that action at this time.