Skip to content

Commit bfa90a9

Browse files
committed
[processing] fixed toolbox updates
1 parent fc08535 commit bfa90a9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

python/plugins/processing/gui/ProcessingToolbox.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _filterItem(self, item, text):
135135
item.setHidden(not show)
136136
return show
137137
elif isinstance(item, (TreeAlgorithmItem, TreeActionItem)):
138-
#hide = bool(text) and (text not in item.text(0).lower())
138+
# hide = bool(text) and (text not in item.text(0).lower())
139139
hide = bool(text) and not any(text in t for t in [item.text(0).lower(), item.data(0, Qt.UserRole).lower()])
140140
if isinstance(item, TreeAlgorithmItem):
141141
hide = hide and (text not in item.alg.commandLineName())
@@ -377,6 +377,7 @@ def __init__(self, providerName, tree, toolbox):
377377

378378
def refresh(self):
379379
self.takeChildren()
380+
Processing.updateAlgsList()
380381
self.populate()
381382

382383
def populate(self):

python/plugins/processing/modeler/ModelerAlgorithmProvider.py

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def _loadAlgorithms(self):
7777
self.loadFromFolder(folder)
7878

7979
def loadFromFolder(self, folder):
80+
self.algs = []
8081
if not os.path.exists(folder):
8182
return
8283
for path, subdirs, files in os.walk(folder):

0 commit comments

Comments
 (0)