We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 5ae723b commit 62d1531Copy full SHA for 62d1531
python/plugins/processing/algs/otb/OTBAlgorithm.py
@@ -63,6 +63,7 @@ def __init__(self, descriptionfile):
63
self.defineCharacteristicsFromFile()
64
self.numExportedLayers = 0
65
self.hasROI = None
66
+ self._icon = None
67
68
def __str__(self):
69
return("Algo : " + self.name + " from app : " + self.cliName + " in : " + self.group)
@@ -73,7 +74,9 @@ def getCopy(self):
73
74
return newone
75
76
def getIcon(self):
- return QIcon(os.path.join(pluginPath, 'images', 'otb.png'))
77
+ if self._icon is None:
78
+ self._icon = QIcon(os.path.join(pluginPath, 'images', 'otb.png'))
79
+ return self._icon
80
81
def help(self):
82
version = OTBUtils.getInstalledVersion()
0 commit comments