mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Drop version and count from algorithm item in tree view
This commit is contained in:
parent
925ec6098c
commit
a33376fe09
@ -122,8 +122,7 @@ class GdalAlgorithmProvider(QgsProcessingProvider):
|
||||
ProcessingConfig.setSettingValue('ACTIVATE_GDAL', active)
|
||||
|
||||
def name(self):
|
||||
version = GdalUtils.readableVersion()
|
||||
return 'GDAL ({})'.format(version)
|
||||
return 'GDAL'
|
||||
|
||||
def id(self):
|
||||
return 'gdal'
|
||||
|
@ -452,9 +452,7 @@ class ProcessingToolbox(BASE, WIDGET):
|
||||
label.setStyleSheet("QLabel {background-color: white; color: grey;}")
|
||||
label.linkActivated.connect(activateProvider)
|
||||
self.algorithmTree.setItemWidget(parent, 0, label)
|
||||
|
||||
else:
|
||||
text += QCoreApplication.translate("TreeProviderItem", " [{0} geoalgorithms]").format(count)
|
||||
parent.setText(0, text)
|
||||
parent.setToolTip(0, parent.text(0))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user