mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] fixed toolbox updates
This commit is contained in:
parent
fc08535429
commit
bfa90a9125
@ -135,7 +135,7 @@ class ProcessingToolbox(BASE, WIDGET):
|
||||
item.setHidden(not show)
|
||||
return show
|
||||
elif isinstance(item, (TreeAlgorithmItem, TreeActionItem)):
|
||||
#hide = bool(text) and (text not in item.text(0).lower())
|
||||
# hide = bool(text) and (text not in item.text(0).lower())
|
||||
hide = bool(text) and not any(text in t for t in [item.text(0).lower(), item.data(0, Qt.UserRole).lower()])
|
||||
if isinstance(item, TreeAlgorithmItem):
|
||||
hide = hide and (text not in item.alg.commandLineName())
|
||||
@ -377,6 +377,7 @@ class TreeProviderItem(QTreeWidgetItem):
|
||||
|
||||
def refresh(self):
|
||||
self.takeChildren()
|
||||
Processing.updateAlgsList()
|
||||
self.populate()
|
||||
|
||||
def populate(self):
|
||||
|
@ -77,6 +77,7 @@ class ModelerAlgorithmProvider(AlgorithmProvider):
|
||||
self.loadFromFolder(folder)
|
||||
|
||||
def loadFromFolder(self, folder):
|
||||
self.algs = []
|
||||
if not os.path.exists(folder):
|
||||
return
|
||||
for path, subdirs, files in os.walk(folder):
|
||||
|
Loading…
x
Reference in New Issue
Block a user