mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
[processing] move grass & saga version number to tooltips
This commit is contained in:
parent
49b23127ca
commit
a477ea3ae4
@ -119,6 +119,9 @@ class Grass7AlgorithmProvider(QgsProcessingProvider):
|
||||
self.addAlgorithm(a)
|
||||
|
||||
def name(self):
|
||||
return 'GRASS'
|
||||
|
||||
def longName(self):
|
||||
version = Grass7Utils.installedVersion()
|
||||
return 'GRASS GIS ({})'.format(version) if version is not None else "GRASS GIS"
|
||||
|
||||
|
@ -109,6 +109,9 @@ class SagaAlgorithmProvider(QgsProcessingProvider):
|
||||
self.addAlgorithm(a)
|
||||
|
||||
def name(self):
|
||||
return 'SAGA'
|
||||
|
||||
def longName(self):
|
||||
version = SagaUtils.getInstalledVersion()
|
||||
return 'SAGA ({})'.format(version) if version is not None else 'SAGA'
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user