mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
[processing] fied issue with grass icons slowing down toolbox
fixes #15550
This commit is contained in:
parent
448961b35d
commit
2fda177c0e
@ -84,6 +84,7 @@ class GrassAlgorithm(GeoAlgorithm):
|
|||||||
self.descriptionFile = descriptionfile
|
self.descriptionFile = descriptionfile
|
||||||
self.defineCharacteristicsFromFile()
|
self.defineCharacteristicsFromFile()
|
||||||
self.numExportedLayers = 0
|
self.numExportedLayers = 0
|
||||||
|
self._icon = None
|
||||||
|
|
||||||
def getCopy(self):
|
def getCopy(self):
|
||||||
newone = GrassAlgorithm(self.descriptionFile)
|
newone = GrassAlgorithm(self.descriptionFile)
|
||||||
@ -91,7 +92,10 @@ class GrassAlgorithm(GeoAlgorithm):
|
|||||||
return newone
|
return newone
|
||||||
|
|
||||||
def getIcon(self):
|
def getIcon(self):
|
||||||
return QIcon(os.path.join(pluginPath, 'images', 'grass.svg'))
|
if self._icon is None:
|
||||||
|
self._icon = QIcon(os.path.join(pluginPath, 'images', 'grass.svg'))
|
||||||
|
return self._icon
|
||||||
|
|
||||||
|
|
||||||
def help(self):
|
def help(self):
|
||||||
return False, 'http://grass.osgeo.org/grass64/manuals/' + self.grassName + '.html'
|
return False, 'http://grass.osgeo.org/grass64/manuals/' + self.grassName + '.html'
|
||||||
|
@ -83,6 +83,7 @@ class Grass7Algorithm(GeoAlgorithm):
|
|||||||
self.descriptionFile = descriptionfile
|
self.descriptionFile = descriptionfile
|
||||||
self.defineCharacteristicsFromFile()
|
self.defineCharacteristicsFromFile()
|
||||||
self.numExportedLayers = 0
|
self.numExportedLayers = 0
|
||||||
|
self._icon = None
|
||||||
self.uniqueSufix = unicode(uuid.uuid4()).replace('-', '')
|
self.uniqueSufix = unicode(uuid.uuid4()).replace('-', '')
|
||||||
|
|
||||||
# Use the ext mechanism
|
# Use the ext mechanism
|
||||||
@ -98,7 +99,9 @@ class Grass7Algorithm(GeoAlgorithm):
|
|||||||
return newone
|
return newone
|
||||||
|
|
||||||
def getIcon(self):
|
def getIcon(self):
|
||||||
return QIcon(os.path.join(pluginPath, 'images', 'grass.svg'))
|
if self._icon is None:
|
||||||
|
self._icon = QIcon(os.path.join(pluginPath, 'images', 'grass.svg'))
|
||||||
|
return self._icon
|
||||||
|
|
||||||
def help(self):
|
def help(self):
|
||||||
localDoc = None
|
localDoc = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user